Skip to content

[Tab, Tabs] Remove deprecated CSS classes#48078

Merged
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:worktree-remove-deprecated-tabs-classes
Mar 24, 2026
Merged

[Tab, Tabs] Remove deprecated CSS classes#48078
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:worktree-remove-deprecated-tabs-classes

Conversation

@siriwatknp
Copy link
Member

Summary

Removes the following deprecated CSS classes:

Tab:

  • iconWrapper — use the icon class instead

Tabs:

  • flexContainer — use the list class instead
  • flexContainerVertical — combine the list and vertical classes instead

Also updates the dashboard template to use tabsClasses.list instead of tabsClasses.flexContainer.

Breaking change

Users relying on deprecated CSS classes should migrate. Codemods are available:

npx @mui/codemod@latest deprecations/tab-classes <path>

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

mui-bot commented Mar 24, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-223B(-0.04%) ▼-54B(-0.04%)
@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 b26a723

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Looks good ~ just one doc issue

+.MuiTab-icon
```

#### Tabs deprecated classes removed
Copy link
Member

Choose a reason for hiding this comment

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

Is it missing the sentence about the codemod?

Copy link
Member Author

Choose a reason for hiding this comment

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

there is no tabs-classes codemod.

@siriwatknp siriwatknp force-pushed the worktree-remove-deprecated-tabs-classes branch from b26a723 to 2f2c26e Compare March 24, 2026 08:30
@siriwatknp siriwatknp merged commit 9da1516 into mui:master Mar 24, 2026
33 checks passed
@siriwatknp siriwatknp added the scope: tabs Changes related to the tabs. label Mar 24, 2026
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. scope: tabs Changes related to the tabs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants