Skip to content

Add support MUI v9#11248

Merged
fzaninotto merged 12 commits intomarmelab:nextfrom
smeng9:mui-v9-next
May 7, 2026
Merged

Add support MUI v9#11248
fzaninotto merged 12 commits intomarmelab:nextfrom
smeng9:mui-v9-next

Conversation

@smeng9
Copy link
Copy Markdown
Contributor

@smeng9 smeng9 commented Apr 27, 2026

Problem

MUI v9 is out

Solution

[x] Icons ended with Outline should be renamed to Outlined (https://mui.com/material-ui/migration/upgrade-to-v9/#material-icons)
[x] ListItemIcon default minWidth is kept as 56px in themes (https://mui.com/material-ui/migration/upgrade-to-v9/#list)
[x] slotProps are supported (follows a similar implementation in AutocompleteInput.tsx)
[x] Typography paragraph prop is now changed to marginBottom (https://mui.com/material-ui/migration/upgrade-to-v9/#typography-props)

Closes #11241

How To Test

The code should still be backwards compatible till MUI v5

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@fzaninotto fzaninotto mentioned this pull request Apr 27, 2026
@fzaninotto
Copy link
Copy Markdown
Member

Typecheck fails with MUI v7 (see CI output), can you please fix it?

@smeng9
Copy link
Copy Markdown
Contributor Author

smeng9 commented Apr 27, 2026

Hi @fzaninotto

The types should be fixed now

@smeng9 smeng9 requested a review from fzaninotto April 27, 2026 09:01
Copy link
Copy Markdown
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

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

We need to disable alerts about useless @ts-expect-error annotations because some will become useless depending on the MUI version we use.

Comment thread packages/ra-ui-materialui/src/input/DateInput.tsx Outdated
Comment thread packages/ra-ui-materialui/src/input/DateInput.tsx
Comment thread packages/ra-ui-materialui/src/input/DateInput.tsx Outdated
@smeng9 smeng9 requested a review from fzaninotto April 27, 2026 11:16
Copy link
Copy Markdown
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

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

Almost ready!

Comment thread packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
Comment thread packages/ra-ui-materialui/src/theme/bwTheme.ts
@smeng9 smeng9 requested a review from fzaninotto April 29, 2026 01:16
@fzaninotto fzaninotto merged commit 0dc6553 into marmelab:next May 7, 2026
21 of 24 checks passed
@fzaninotto
Copy link
Copy Markdown
Member

Thanks!

@fzaninotto fzaninotto added this to the 5.15.0 milestone May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants