-
Notifications
You must be signed in to change notification settings - Fork 259
Update to MUI 7 #4139
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
base: main
Are you sure you want to change the base?
Update to MUI 7 #4139
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4139 +/- ##
==========================================
- Coverage 94.91% 94.91% -0.01%
==========================================
Files 324 324
Lines 16147 16144 -3
Branches 2533 2532 -1
==========================================
- Hits 15326 15323 -3
Misses 816 816
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an entire review, just wanted to leave this here for them moment.
(Thanks for figuring out a solution.)
@@ -20,7 +20,7 @@ export function SelectCollection({ | |||
return ( | |||
<Grid container justifyContent="center" alignItems="center"> | |||
<Grid container direction="column" alignItems="center"> | |||
<Typography variant="h4" paragraph> | |||
<Typography variant="h4" component="p"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cause for that is not in the Typography
change, of course. In the old version, the div for the row Grid
(the component that is now GridLegacy
) two lines above had a CSS width of 100% that is missing in the new version. Adding size="grow"
to the row Grid
would be one option to solve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lutzhelm thank you for finding this. But I am not seeing it? This looks centered to me.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked out 9ada8ca just to double check, and this is what it looks like to me - centered as it should:
I'm a bit confused and wonder where those differences come from. I tested with Firefox 136, Chromium 136 and Chrome 135 on Ubuntu Linux, running Mirador with NodeJS 20.18.1 and npm 10.8.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, I found no issues.
I was also able to use this in the share, download and image-tools plugins and had no trouble with tests or builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding this. I actually started seeing even worse behavior where the stacking was overlapping. Which is odd that neither of us saw that before so I'm curious if you can reproduce prior to 07789cd
. I added a separate commit 07789cd
Rework the manifest list layout
to this PR to address that -- please let me know what you see, but here's what I see now:

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I see on commit 07789cd (your latest from yesterday):
These differences don't really inspire confidence. But if there aren't any functional problems, we could fix other surfacing related issues along the way.
This was mostly created using MUI's codemods.
The
Grid2
component has moved back into theGrid
namespace. That is the biggest change.(for testing purposes, also included is @lutzhelm's syntax for externalizing peer dependencies but I can slice this out into another PR.)
Visually, the changes seem to have no impact, but of course more eyes are better!
I am interested in this upgrade because of the solution for better ESM support: mui/material-ui#45495. This will fix some issues reported during plugin integration such as #4136
If this is approved and merged and we cut a new alpha release, I have PRs drafted locally for several plugins to support this change. And some like
image-tools
seem to require zero changes to support 7.