[alert] Remove deprecated classes#48011
Conversation
Netlify deploy previewBundle size report
|
There was a problem hiding this comment.
Pull request overview
Removes deprecated composed Alert CSS utility classes (the old variant+color class names like standardSuccess) and updates docs/migration guidance accordingly.
Changes:
- Removes deprecated class keys from
Alert’s generated utility classes and TypeScriptAlertClassesinterface. - Stops generating / resolving composed
${variant}${capitalize(color || severity)}classes inAlertcomponent code. - Updates API docs JSON and adds an “upgrade to v9” migration section for the removed classes.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/mui-material/src/Alert/alertClasses.ts | Drops deprecated composed class keys from the public AlertClasses typings and generated alertClasses. |
| packages/mui-material/src/Alert/Alert.js | Removes composed class generation and style override resolution for variant+color utility classes. |
| docs/translations/api-docs/alert/alert.json | Removes deprecated class docs entries (but currently still lists standardWarning). |
| docs/pages/material-ui/api/alert.json | Removes deprecated class docs entries (but currently still lists standardWarning). |
| docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md | Documents removal and provides codemod + replacement selectors for v9 migration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
17296bd to
ee72834
Compare
There was a problem hiding this comment.
Pull request overview
Removes deprecated composed Alert utility classes (e.g. standardSuccess, filledError) from the Material UI Alert component and updates docs, translations, and migration guidance to use the supported class combinations (.MuiAlert-standard.MuiAlert-colorSuccess, etc.).
Changes:
- Removed deprecated
variant+colorutility class keys fromAlertClasses/alertClassesand stopped generating/applying them inAlert. - Updated docs/themes to target
color*classes combined with the variant class (via selectors) instead of the removed composed class keys. - Added v9 upgrade guide content documenting the removal and pointing to the
alert-classescodemod.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/mui-material/src/Alert/alertClasses.ts | Removes deprecated composed class keys from the public classes contract and generated utilities. |
| packages/mui-material/src/Alert/Alert.js | Stops adding/resolving deprecated composed classes in useUtilityClasses and overridesResolver. |
| packages/mui-docs/src/branding/brandingTheme.ts | Replaces removed standard* styleOverrides keys with color* + variant selector styling. |
| docs/translations/api-docs/alert/alert.json | Removes deprecated class descriptions from translated API docs. |
| docs/src/components/home/MaterialDesignComponents.tsx | Updates docs theme overrides to use colorInfo + .MuiAlert-standard selector. |
| docs/pages/material-ui/api/alert.json | Removes deprecated classes from the generated API classes list. |
| docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md | Documents removal and codemod usage for v9 migration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
ee72834 to
3133ba9
Compare
67c62a4 to
4cf6958
Compare
Uh oh!
There was an error while loading. Please reload this page.