Skip to content

[alert] Remove deprecated classes#48011

Merged
silviuaavram merged 7 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-1-2
Mar 19, 2026
Merged

[alert] Remove deprecated classes#48011
silviuaavram merged 7 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-1-2

Conversation

@silviuaavram
Copy link
Member

@silviuaavram silviuaavram commented Mar 17, 2026

@silviuaavram silviuaavram added breaking change Introduces changes that are not backward compatible. scope: alert Changes related to the alert. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v9.x labels Mar 17, 2026
@mui-bot
Copy link

mui-bot commented Mar 17, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-253B(-0.05%) ▼-51B(-0.03%)
@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 4cf6958

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 TypeScript AlertClasses interface.
  • Stops generating / resolving composed ${variant}${capitalize(color || severity)} classes in Alert component 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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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+color utility class keys from AlertClasses/alertClasses and stopped generating/applying them in Alert.
  • 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-classes codemod.

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.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 18, 2026
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-1-2 branch from ee72834 to 3133ba9 Compare March 18, 2026 12:03
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 18, 2026
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 19, 2026
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-1-2 branch from 67c62a4 to 4cf6958 Compare March 19, 2026 08:02
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 19, 2026
@silviuaavram silviuaavram merged commit e2e86ef into mui:master Mar 19, 2026
23 checks passed
@silviuaavram silviuaavram deleted the chore/remove-deprecated-props-1-2 branch March 19, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. scope: alert Changes related to the alert. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v9.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants