Skip to content

[deps] bump minimum core packages to 7.3.0 to adopt theme color manipulator#21892

Merged
siriwatknp merged 6 commits intomui:masterfrom
siriwatknp:native-color-material-ui
Mar 31, 2026
Merged

[deps] bump minimum core packages to 7.3.0 to adopt theme color manipulator#21892
siriwatknp merged 6 commits intomui:masterfrom
siriwatknp:native-color-material-ui

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

@siriwatknp siriwatknp commented Mar 30, 2026

To unblock mui/material-ui#47765

As discussed, MUI X v9 is compatible with Material UI v7 and v9.
This PR bumps the minimum version of Material UI and system to ^v7.3.0 for all packages to adopt theme.alpha() to get rid of the direct import of color manipulation.

The benefit is to let Material UI handles the color manipulation based on the theme config.
To learn more, see https://mui.com/material-ui/migration/upgrade-to-native-color


Replace alpha/darken/lighten imports and Channel token conditionals
with theme.alpha()/theme.darken()/theme.lighten() across all packages.
@siriwatknp siriwatknp requested a review from JCQuintas as a code owner March 30, 2026 06:49
@siriwatknp siriwatknp added the dependencies Update of dependencies. label Mar 30, 2026
@siriwatknp siriwatknp added scope: data grid Changes related to the data grid. scope: pickers Changes related to the date/time pickers. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. scope: charts Changes related to the charts. scope: scheduler Changes related to the scheduler. labels Mar 30, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 30, 2026

Deploy preview: https://deploy-preview-21892--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid ▼-178B(-0.04%) ▼-60B(-0.05%)
@mui/x-data-grid-pro ▼-177B(-0.04%) 🔺+25B(+0.02%)
@mui/x-data-grid-premium ▼-178B(-0.03%) 🔺+31B(+0.02%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 🔺+18B(0.00%) ▼-18B(-0.01%)
@mui/x-charts-premium 🔺+31B(+0.01%) ▼-11B(-0.01%)
@mui/x-date-pickers ▼-874B(-0.38%) ▼-126B(-0.21%)
@mui/x-date-pickers-pro ▼-1.17KB(-0.36%) ▼-211B(-0.25%)
@mui/x-tree-view ▼-411B(-0.62%) ▼-37B(-0.19%)
@mui/x-tree-view-pro ▼-414B(-0.35%) ▼-84B(-0.24%)

Details of bundle changes

Generated by 🚫 dangerJS against 6102f2d

@siriwatknp siriwatknp requested a review from LukasTy March 30, 2026 07:02
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Mar 30, 2026

Merging this PR will not alter performance

✅ 14 untouched benchmarks


Comparing siriwatknp:native-color-material-ui (6102f2d) with master (e1d56fa)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (3fede28) during the generation of this report, so e1d56fa was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Copy Markdown
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM. 👌
I've tested Pickers and Tree View, all instances look the same, I assume the result for Data Grid, Charts and Scheduler is the same. 🙌

Nitpick: Is the dep bump agreed upon among the Product people?
We wanted to drop v5 dep for v8, but at the last minute, we had to back-track the change. 🙈

Comment thread packages/x-charts-pro/package.json
@siriwatknp
Copy link
Copy Markdown
Member Author

Is the dep bump agreed upon among the Product people?

Yes, the conversation is here https://mui-org.slack.com/archives/C061V6JNZ9Q/p1772718169530129?thread_ts=1772510855.933709&cid=C061V6JNZ9Q, acknowledged by the product team.

@siriwatknp siriwatknp enabled auto-merge (squash) March 30, 2026 07:58
@siriwatknp siriwatknp disabled auto-merge March 30, 2026 07:58
@siriwatknp siriwatknp merged commit 0b052e6 into mui:master Mar 31, 2026
22 checks passed
arminmeh pushed a commit to arminmeh/mui-x that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update of dependencies. scope: charts Changes related to the charts. scope: data grid Changes related to the data grid. scope: pickers Changes related to the date/time pickers. scope: scheduler Changes related to the scheduler. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants