-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] line-height removed #13900
Comments
@thomaskempel Which variants have no more @oliviertassinari |
There is something wrong with next typography variants flag. For example ListItemText has bigger lineHeight internally |
@eps1lon True @thomaskempel Do you want to add the line-height back in the Button style? We should add a warning so we don't forget to remove it with v4.
@TrySound I agree, I think that we should use the Benchmark: |
Again: What do you mean by "back"? It didn't even have a @TrySound |
Thanks for your help. I don't want to make too much trouble. I was just wondering if it was intended. I don't use any variant. |
ListItemText just looks ugly with enabled next typography flag, nothing else |
@eps1lon Here is what I have in mind: export const styles = theme => ({
root: {
+ lineHeight: '1.4em', // To remove after v4 is released.
...theme.typography.button, primary = (
<Typography
+ variant={theme.typography.useNextVariants ? 'body1' : 'subheading'}
- internalDeprecatedVariant
className={classNames(classes.primary, { [classes.textDense]: dense })}
component="span"
{...primaryTypographyProps} Does someone want to work on it? |
Oh so we're not talking about the I didn't agree with the change in the first place. Especially since it was targeted at multiline buttons that never appear in the material design guidelines. @oliviertassinari |
@eps1lon I'm note sure to understand. Are you happy to move forward with the changes I have proposed in #13900 (comment)?
Regarding the multiline button, I think that it's important to handle, it can happen independently from the developer will. For instance went translating the website, or when resizing the screen. |
@oliviertassinari I've seen that you removed the line-height. Was that intended? We noticed several UI changes in our app.
lineHeight: '1.4em', // Improve readability for multiline button.
Cheers, Thomas
Originally posted by @thomaskempel in #13136 (comment)
The text was updated successfully, but these errors were encountered: