Skip to content

[material-ui] Remove unnecessary overridesResolvers from styled components#48082

Merged
ZeeshanTamboli merged 2 commits into
mui:masterfrom
ZeeshanTamboli:remove-unnecessary-overridesResolver-in-styled-definitions
Mar 24, 2026
Merged

[material-ui] Remove unnecessary overridesResolvers from styled components#48082
ZeeshanTamboli merged 2 commits into
mui:masterfrom
ZeeshanTamboli:remove-unnecessary-overridesResolver-in-styled-definitions

Conversation

@ZeeshanTamboli

@ZeeshanTamboli ZeeshanTamboli commented Mar 24, 2026

Copy link
Copy Markdown
Member

defaultOverridesResolver is run for all Material UI styled components, so these become redundant when there is only one style overrides slot.

@ZeeshanTamboli ZeeshanTamboli added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v7.x needs cherry-pick The PR should be cherry-picked to master after merge. labels Mar 24, 2026
@mui-bot

mui-bot commented Mar 24, 2026

Copy link
Copy Markdown

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-150B(-0.03%) ▼-33B(-0.02%)
@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 bc78d04

@siriwatknp siriwatknp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@ZeeshanTamboli ZeeshanTamboli merged commit edc0a17 into mui:master Mar 24, 2026
19 checks passed
@ZeeshanTamboli ZeeshanTamboli deleted the remove-unnecessary-overridesResolver-in-styled-definitions branch March 24, 2026 09:41
@github-actions

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: styled-engine Specific to @mui/styled-engine type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants