-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[joy-ui][Button] Fix the text wrap issue #38696
Conversation
Netlify deploy previewhttps://deploy-preview-38696--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
Thanks for the submission @atharva3333! I changed the lineHeight for |
Why this is closed? @atharva3333 would you like to submit a PR again? |
Hey @siriwatknp I have reopen the pull request |
Hello, I'm new to open source. If this issue persists, I'd like to contribute @siriwatknp. |
@zanivan Should the line-height for the button use |
I believe we should keep |
I think we should do so—it fits better with the line-height! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for your first contribution!
paddingInline: '1.5rem', | ||
}), | ||
WebkitTapHighlightColor: 'transparent', | ||
boxSizing: 'border-box', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to explicitly add this, otherwise, there will be a lot of visual regression changes due to padding/line-height changes.
Material UI also explicitly sets this value.
Part of #38675, solve the Joy UI side.
https://deploy-preview-38696--material-ui.netlify.app/joy-ui/react-button/#introduction