Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextField] Fix textfield label position when empty #13791

Merged
merged 2 commits into from
Dec 4, 2018
Merged

[TextField] Fix textfield label position when empty #13791

merged 2 commits into from
Dec 4, 2018

Conversation

Studio384
Copy link
Contributor

Fixes #13735 for both the outlined and filled variants of the TextField.

@eps1lon
Copy link
Member

eps1lon commented Dec 4, 2018

With this change the placeholders are no longer in the middle if no label is provided: https://www.argos-ci.com/mui-org/material-ui/builds/37875

@oliviertassinari oliviertassinari self-assigned this Dec 4, 2018
@oliviertassinari oliviertassinari added design: material This is about Material Design, please involve a visual or UX designer in the process component: text field This is the name of the generic UI component, not the React module! labels Dec 4, 2018
@oliviertassinari oliviertassinari merged commit f31f65d into mui:master Dec 4, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Dec 4, 2018

@eps1lon Yeah, the specification asks for centering the filled label. It should be good now. We are using some sub-pixel paddings and odd height values. I'm wondering if that can't create few rendering issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! design: material This is about Material Design, please involve a visual or UX designer in the process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants