Skip to content

[ImageListItemBar] Remove deprecated CSS classes#48064

Merged
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:chore/remove-deprecated-image-list-item-bar-classes
Mar 23, 2026
Merged

[ImageListItemBar] Remove deprecated CSS classes#48064
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:chore/remove-deprecated-image-list-item-bar-classes

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

Summary

  • Removed deprecated compound CSS classes: titleWrapBelow, titleWrapActionPosLeft, titleWrapActionPosRight, actionIconActionPosLeft
  • Also removed undocumented compound classes from generateUtilityClasses: titleWrapBottom, titleWrapTop, actionIconActionPosRight
  • Simplified useUtilityClasses and overridesResolver for titleWrap and actionIcon slots
  • Updated migration guide with codemod reference

Test plan

  • pnpm prettier passes
  • pnpm eslint passes
  • pnpm typescript passes
  • pnpm test:unit ImageListItemBar passes (36 passed)

@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
Copy link
Copy Markdown

mui-bot commented Mar 23, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-440B(-0.09%) ▼-64B(-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 25f8a74

});

it('should render a child div with the titleWrapBelow class', () => {
it('should render a child div with the titleWrap class', () => {
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.

for these tests could we also assert the Below and ActionPosLeft classes on the root?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done — tests now assert positionBelow and actionPositionLeft on root.

@siriwatknp siriwatknp enabled auto-merge (squash) March 23, 2026 13:05
@siriwatknp siriwatknp merged commit c3937a9 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.

4 participants