Skip to content

[Drawer] Remove deprecated CSS classes#48077

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

[Drawer] Remove deprecated CSS classes#48077
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:worktree-remove-deprecated-drawer-classes

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

Summary

Removes the following deprecated CSS classes from the Drawer component:

  • paperAnchorLeft — use .MuiDrawer-anchorLeft > .MuiDrawer-paper instead
  • paperAnchorRight — use .MuiDrawer-anchorRight > .MuiDrawer-paper instead
  • paperAnchorTop — use .MuiDrawer-anchorTop > .MuiDrawer-paper instead
  • paperAnchorBottom — use .MuiDrawer-anchorBottom > .MuiDrawer-paper instead
  • paperAnchorDockedLeft — use .MuiDrawer-anchorLeft.MuiDrawer-docked > .MuiDrawer-paper instead
  • paperAnchorDockedRight — use .MuiDrawer-anchorRight.MuiDrawer-docked > .MuiDrawer-paper instead
  • paperAnchorDockedTop — use .MuiDrawer-anchorTop.MuiDrawer-docked > .MuiDrawer-paper instead
  • paperAnchorDockedBottom — use .MuiDrawer-anchorBottom.MuiDrawer-docked > .MuiDrawer-paper instead

Breaking change

Users relying on deprecated compound CSS classes should migrate to combining individual classes. A codemod is available:

npx @mui/codemod@latest deprecations/drawer-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
@siriwatknp siriwatknp added the scope: drawer Changes related to the drawer. label Mar 24, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 24, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-358B(-0.07%) ▼-60B(-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 de30d44

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@siriwatknp siriwatknp merged commit 54eb93d into mui:master Mar 24, 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. scope: drawer Changes related to the drawer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants