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

[system] Fix sx prop regression for fontWeight values #36543

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

mnajdova
Copy link
Member

Fixes #36542, it was a regression from #33621. Test added to cover this functionality.

@mnajdova mnajdova added package: system Specific to @mui/system regression A bug, but worse labels Mar 17, 2023
@mui-bot
Copy link

mui-bot commented Mar 17, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against 4a627a2

@mnajdova mnajdova marked this pull request as ready for review March 17, 2023 07:46
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Nice, it looks much cleaner with the comments. 👍

sx: {
fontFamily: 'default',
fontWeight: 'fontWeightMedium',
fontSize: 'fontSize',
Copy link
Member

Choose a reason for hiding this comment

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

Now I understood why this was added. Just the syntax looks a bit weird.

Copy link
Member Author

Choose a reason for hiding this comment

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

We are going to drop that one in v6, that was the initial plan. We will support 'default', or 'light', 'medium' etc. We just cannot do it during v5's lifetime.

@mnajdova mnajdova merged commit 46b3a1f into mui:master Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v5.11.13 broke typography sx handling
3 participants