Skip to content

[badge] Remove deprecated props#47993

Merged
silviuaavram merged 4 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-5
Mar 17, 2026
Merged

[badge] Remove deprecated props#47993
silviuaavram merged 4 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-5

Conversation

@silviuaavram
Copy link
Member

@silviuaavram silviuaavram commented Mar 16, 2026

Copilot AI review requested due to automatic review settings March 16, 2026 14:22
@silviuaavram silviuaavram added breaking change Introduces changes that are not backward compatible. scope: badge Changes related to the badge. 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 16, 2026
@mui-bot
Copy link

mui-bot commented Mar 16, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-127B(-0.02%) ▼-44B(-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 31a4ce6

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 the deprecated components / componentsProps API from Material UI’s Badge and updates the surrounding type definitions, tests, and docs to reflect the v9-only slots / slotProps API.

Changes:

  • Removed components and componentsProps handling from packages/mui-material/src/Badge/Badge.js.
  • Deleted deprecated prop typings and PropTypes for components / componentsProps in Badge.d.ts and Badge.js.
  • Updated tests and API documentation JSON to only reference slots / slotProps, and added an upgrade note in the v9 migration guide.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/mui-material/src/Badge/Badge.js Removes deprecated components / componentsProps support and PropTypes entries.
packages/mui-material/src/Badge/Badge.d.ts Removes deprecated components / componentsProps from TypeScript surface area.
packages/mui-material/src/Badge/Badge.test.js Drops deprecated-prop coverage, keeps slots / slotProps coverage.
docs/translations/api-docs/badge/badge.json Removes deprecated props from translated API docs.
docs/pages/material-ui/api/badge.json Removes deprecated props from API docs payload.
docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md Adds v9 migration note and codemod reference for Badge prop removals.

💡 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 17, 2026
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-5 branch from 23bbde7 to c71c411 Compare March 17, 2026 10:33
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 17, 2026
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-5 branch from d64c1a3 to d108552 Compare March 17, 2026 12:16
@silviuaavram silviuaavram force-pushed the chore/remove-deprecated-props-5 branch from d108552 to 31a4ce6 Compare March 17, 2026 12:34
@silviuaavram silviuaavram merged commit bb04097 into mui:master Mar 17, 2026
26 of 27 checks passed
@silviuaavram silviuaavram deleted the chore/remove-deprecated-props-5 branch March 17, 2026 13:03
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: badge Changes related to the badge. 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