Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

mdc-text-fields vertical alignment is incorrect #2784

Closed
lynnmercier opened this issue May 21, 2018 · 2 comments
Closed

mdc-text-fields vertical alignment is incorrect #2784

lynnmercier opened this issue May 21, 2018 · 2 comments
Labels

Comments

@lynnmercier
Copy link
Contributor

Spec shows 20px from top of box to baseline of label, and then 20px from baseline of label to baseline of text:
https://material.io/design/components/text-fields.html#spec
image

But our component shows ~19px from top of box to baseline of label, and then 24px from baseline of label to baseline of text
image

(I actually think the spec might be wrong. It seems a bit tight on the spacing)

@kfranqueiro
Copy link
Contributor

We should probably also check that Textarea's distance between baselines are consistent with Text Field's.

@kfranqueiro
Copy link
Contributor

Confirmed with design that the space between baselines should be 20px. Right now our spacing below the input text is 4px less than it should be. Bringing it up should also make it consistent with outlined text field.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants