Skip to content

[ButtonGroup] Remove deprecated classes#48043

Merged
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-button-group-classes
Mar 20, 2026
Merged

[ButtonGroup] Remove deprecated classes#48043
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-button-group-classes

Conversation

@siriwatknp
Copy link
Member

Summary

Remove 17 deprecated CSS classes from the ButtonGroup component:

groupedHorizontal, groupedVertical, groupedText, groupedTextHorizontal, groupedTextVertical, groupedTextPrimary, groupedTextSecondary, groupedOutlined, groupedOutlinedHorizontal, groupedOutlinedVertical, groupedOutlinedPrimary, groupedOutlinedSecondary, groupedContained, groupedContainedHorizontal, groupedContainedVertical, groupedContainedPrimary, groupedContainedSecondary

Users should combine the base classes instead (e.g., .MuiButtonGroup-contained.MuiButtonGroup-colorPrimary > .MuiButtonGroup-grouped).

An existing button-group-classes codemod is available to automate the migration.

Breaking change

The deprecated combined CSS classes have been removed from ButtonGroup. Use class combinations instead. See the migration guide section added to upgrade-to-v9.md.

@siriwatknp siriwatknp added breaking change Introduces changes that are not backward compatible. package: material-ui Specific to Material UI. labels Mar 20, 2026
@mui-bot
Copy link

mui-bot commented Mar 20, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-664B(-0.13%) ▼-121B(-0.08%)
@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 35930fe

@siriwatknp siriwatknp merged commit 85da9bb into mui:master Mar 20, 2026
24 of 25 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. package: material-ui Specific to Material UI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants