Skip to content

[Input] Reset the line-height#10346

Merged
oliviertassinari merged 1 commit intomui:v1-betafrom
oliviertassinari:fix-input-height
Feb 19, 2018
Merged

[Input] Reset the line-height#10346
oliviertassinari merged 1 commit intomui:v1-betafrom
oliviertassinari:fix-input-height

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 type: bug It doesn't behave as expected. scope: text field Changes related to the text field. 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

scope: text field Changes related to the text field. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant