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

[material-ui][Typography] Fix Typography inherit variant styles #41308

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

kealjones-wk
Copy link
Contributor

In #38123 the styles were supposed to be moved from the theme into the styled component but lineHeight and letterSpacing styles were missed and it caused regressions when using button.

Styles that were not moved over: https://github.com/mui/material-ui/pull/38123/files#diff-48a50468b17f36e83faa75d3f1a78ba450b0c78d0cdc6ebfbe1cb27ec5130e1aR80-R81

@kealjones-wk kealjones-wk changed the title [Typography][material-ui] Fix Typography inherit variant styles [material-ui][Typography] Fix Typography inherit variant styles Feb 28, 2024
@mui-bot
Copy link

mui-bot commented Feb 28, 2024

Netlify deploy preview

https://deploy-preview-41308--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 4fae484

@oliviertassinari oliviertassinari added the component: Typography The React component. label Feb 28, 2024
@danilo-leal danilo-leal added the package: material-ui Specific to @mui/material label Feb 29, 2024
@zannager zannager requested a review from mnajdova February 29, 2024 14:19
Comment on lines +49 to +50
lineHeight: 'inherit',
letterSpacing: 'inherit',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would hold off this change until we start working on the breaking changes, just to make sure it won't break something in userland. cc @DiegoAndai

Copy link
Member

@DiegoAndai DiegoAndai Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. We'll point this PR to the next branch when it's created, which should happen soon.

@DiegoAndai DiegoAndai changed the base branch from master to next April 10, 2024 13:15
@DiegoAndai
Copy link
Member

Thanks @kealjones-wk! Sorry for the delay

@DiegoAndai DiegoAndai merged commit 762f659 into mui:next Apr 10, 2024
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Typography The React component. package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants