Skip to content

[ToggleButtonGroup] Remove deprecated classes#48061

Merged
siriwatknp merged 2 commits into
mui:masterfrom
siriwatknp:remove-deprecated-togglebuttongroup-props
Mar 23, 2026
Merged

[ToggleButtonGroup] Remove deprecated classes#48061
siriwatknp merged 2 commits into
mui:masterfrom
siriwatknp:remove-deprecated-togglebuttongroup-props

Conversation

@siriwatknp

Copy link
Copy Markdown
Member

Summary

Remove deprecated classes groupedHorizontal and groupedVertical from ToggleButtonGroup.

Breaking changes

  • groupedHorizontal class removed — combine .MuiToggleButtonGroup-horizontal and .MuiToggleButtonGroup-grouped instead
  • groupedVertical class removed — combine .MuiToggleButtonGroup-vertical and .MuiToggleButtonGroup-grouped instead

Codemod available:

npx @mui/codemod@latest deprecations/toggle-button-group-classes <path>

Relates to #47987

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

mui-bot commented Mar 23, 2026

Copy link
Copy Markdown

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-110B(-0.02%) ▼-23B(-0.02%)
@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 0ee16f9

Comment on lines +1110 to +1113
```diff
-.MuiToggleButtonGroup-groupedHorizontal
+.MuiToggleButtonGroup-horizontal > .MuiToggleButtonGroup-grouped
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps this diff should show the vertical one as well?

siriwatknp

This comment was marked as resolved.

@siriwatknp siriwatknp merged commit e5e288d 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. package: material-ui Specific to Material UI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants