close
Skip to content

[chip] Remove deprecated classes#48046

Merged
mj12albert merged 3 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-10
Mar 23, 2026
Merged

[chip] Remove deprecated classes#48046
mj12albert merged 3 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-10

Conversation

@silviuaavram
Copy link
Copy Markdown
Member

@silviuaavram silviuaavram commented Mar 20, 2026

@silviuaavram silviuaavram added the breaking change Introduces changes that are not backward compatible. label Mar 20, 2026
Copilot AI review requested due to automatic review settings March 20, 2026 15:30
@silviuaavram silviuaavram added scope: chip Changes related to the chip. 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 20, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 20, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-1.15KB(-0.23%) ▼-278B(-0.19%)
@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 3006279

Copy link
Copy Markdown
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 Chip utility classes from Material UI, updating the component’s class generation, tests, and documentation to rely on atomic classes and variant-based styling consistent with the v9 upgrade path.

Changes:

  • Removed deprecated ChipClasses keys and stopped generating the corresponding utility classes.
  • Updated Chip class composition and style resolution to no longer reference deprecated class names.
  • Updated unit tests and API/migration docs to reflect the removed classes and recommended replacements.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/mui-material/src/Chip/chipClasses.ts Drops deprecated class keys from the public ChipClasses API and utility class generation list.
packages/mui-material/src/Chip/Chip.js Removes composition/override handling for deprecated composed classes; migrates some styling to prop-based variants.
packages/mui-material/src/Chip/Chip.test.js Updates assertions to stop depending on removed deprecated class names.
docs/translations/api-docs/chip/chip.json Removes deprecated class entries from generated API translations.
docs/pages/material-ui/api/chip.json Removes deprecated class entries from generated API JSON.
docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md Adds v9 upgrade notes and codemod guidance for removed Chip deprecated classes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/mui-material/src/Chip/Chip.js
Comment thread packages/mui-material/src/Chip/Chip.js
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-10 branch from d565915 to 6909f66 Compare March 20, 2026 15:37
@mj12albert mj12albert enabled auto-merge (squash) March 23, 2026 03:05
@mj12albert mj12albert merged commit a805647 into mui:master Mar 23, 2026
23 checks passed
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: chip Changes related to the chip. 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.

5 participants