Skip to content

[Divider] Remove deprecated CSS classes#48075

Merged
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:worktree-remove-deprecated-divider-classes
Mar 24, 2026
Merged

[Divider] Remove deprecated CSS classes#48075
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:worktree-remove-deprecated-divider-classes

Conversation

@siriwatknp
Copy link
Member

Summary

Removes the deprecated withChildrenVertical CSS class from the Divider component.

Users should combine .MuiDivider-withChildren and .MuiDivider-vertical classes instead.

Breaking change

-.MuiDivider-withChildrenVertical
+.MuiDivider-withChildren.MuiDivider-vertical

@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 ▼-128B(-0.03%) ▼-18B(-0.01%)
@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 d830cd6

@siriwatknp siriwatknp added the scope: divider Changes related to the divier. label Mar 24, 2026
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Is it fine if there is no codemod for this?

Copy link
Member

@silviuaavram silviuaavram left a comment

Choose a reason for hiding this comment

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

let's also add the codemod

/>
```

#### Divider 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.

there is actually a codemod, it's just not added in the readme. we can do it here, not sure why claude did not find it in the PR I created for some missing codemods.

Copy link
Member

@ZeeshanTamboli ZeeshanTamboli Mar 24, 2026

Choose a reason for hiding this comment

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

Claude didn't add because there was no divider-classes codemod, it's divider-props codemod which is different.

@siriwatknp siriwatknp force-pushed the worktree-remove-deprecated-divider-classes branch from d830cd6 to a63ef35 Compare March 24, 2026 08:29
@siriwatknp siriwatknp merged commit 548c594 into mui:master Mar 24, 2026
38 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: divider Changes related to the divier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants