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

[Input] Reset the line-height #10346

Merged
merged 1 commit into from
Feb 19, 2018

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 19, 2018

The line-height is inherited, it's easy to mess up the display of the input, e.g: https://codesandbox.io/s/2z5y03y81r.

capture d ecran 2018-02-19 a 13 28 16

I believe it's safer to reset the property. It's also the approach used by Bootstrap and solves inconsistencies between the native/non-native select, input text/non-input-text.

Raised by @erikras

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! labels Feb 19, 2018
@oliviertassinari oliviertassinari merged commit 3789fac into mui:v1-beta Feb 19, 2018
@oliviertassinari oliviertassinari deleted the fix-input-height branch February 19, 2018 12:38
oliviertassinari added a commit to oliviertassinari/material-ui that referenced this pull request Feb 19, 2018
It's no longer needed with mui#10346
oliviertassinari added a commit that referenced this pull request Feb 19, 2018
It's no longer needed with #10346
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant