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

[Button] Fix vertical alignment of text #14051

Merged
merged 3 commits into from
Jan 2, 2019

Conversation

joshwooding
Copy link
Member

@joshwooding joshwooding commented Dec 31, 2018

Closes #14042

I'm not sure if this is the right way to fix this, but the specification doesn't mention anything about top and bottom padding, only that the button text should be vertically centered. I've kept the padding not to break the look of the multi-line button but the spec explicitly encourages you not to use them

image

@joshwooding joshwooding force-pushed the fix-button-text-alignment branch 2 times, most recently from 1412672 to 52f8836 Compare December 31, 2018 22:46
@joshwooding joshwooding force-pushed the fix-button-text-alignment branch from 52f8836 to c155371 Compare December 31, 2018 22:49
@joshwooding
Copy link
Member Author

joshwooding commented Jan 1, 2019

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! labels Jan 1, 2019
@oliviertassinari
Copy link
Member

oliviertassinari commented Jan 1, 2019

I'm proposing another solution. We get the multiline support for free. While it's not encouraged, it can sometimes happen with long translations.

@oliviertassinari
Copy link
Member

I always celebrate bug fixes that removes code 🍾 🍸!
capture d ecran 2019-01-01 a 22 18 07

@oliviertassinari oliviertassinari merged commit c39f44a into mui:master Jan 2, 2019
@joshwooding joshwooding deleted the fix-button-text-alignment branch January 2, 2019 19:06
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: button 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.

2 participants