Skip to content

[material-ui] Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)"#47927

Merged
ZeeshanTamboli merged 4 commits intomui:masterfrom
joshkel:css-emotion-workaround
Mar 10, 2026
Merged

[material-ui] Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)"#47927
ZeeshanTamboli merged 4 commits intomui:masterfrom
joshkel:css-emotion-workaround

Conversation

@joshkel
Copy link
Contributor

@joshkel joshkel commented Mar 8, 2026

As a workaround for emotion-js/emotion#3366

Fixes #47926

This partially reverts commit f6d6fc5.

@mui-bot
Copy link

mui-bot commented Mar 8, 2026

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 🔺+42B(+0.01%) 🔺+2B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 8892494

@ZeeshanTamboli ZeeshanTamboli added type: regression A bug, but worse, it used to behave as expected. package: material-ui Specific to Material UI. labels Mar 9, 2026
@ZeeshanTamboli ZeeshanTamboli changed the title Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)" [material-ui] Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)" Mar 9, 2026
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.

The reproduction using this PR build works correctly and parses the styles as expected: https://stackblitz.com/edit/dlmtqo3v-asfmdonb?file=src%2FDemo.tsx.

After reading the issue you opened emotion-js/emotion#3366, I now understand the root cause. Thanks for the fix!

@ZeeshanTamboli ZeeshanTamboli added v7.x needs cherry-pick The PR should be cherry-picked to master after merge. labels Mar 9, 2026
@zannager zannager added scope: typography Changes related to typography. and removed package: material-ui Specific to Material UI. labels Mar 9, 2026
@ZeeshanTamboli ZeeshanTamboli enabled auto-merge (squash) March 10, 2026 06:31
@ZeeshanTamboli ZeeshanTamboli merged commit fbac645 into mui:master Mar 10, 2026
18 checks passed
@github-actions
Copy link

Cherry-pick PRs will be created targeting branches: v7.x

github-actions bot pushed a commit that referenced this pull request Mar 10, 2026
… rules (#47838)" (#47927)

Co-authored-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs cherry-pick The PR should be cherry-picked to master after merge. scope: typography Changes related to typography. type: regression A bug, but worse, it used to behave as expected. v7.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSS regression in 7.3.9

5 participants