Skip to content

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

Merged
ZeeshanTamboli merged 2 commits intomui: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 intomui:masterfrom
ZeeshanTamboli:remove-unnecessary-overridesResolver-in-styled-definitions

Conversation

@ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Mar 24, 2026

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
Copy link

mui-bot commented Mar 24, 2026

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

Copy link
Member

@siriwatknp siriwatknp left a comment

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

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

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.

3 participants