Skip to content

[PaginationItem] Remove deprecated CSS classes#48076

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

[PaginationItem] Remove deprecated CSS classes#48076
siriwatknp merged 2 commits intomui:masterfrom
siriwatknp:worktree-remove-deprecated-pagination-item-classes

Conversation

@siriwatknp
Copy link
Member

Summary

Removes the following deprecated CSS classes from the PaginationItem component:

  • textPrimary — use .MuiPaginationItem-text.MuiPaginationItem-colorPrimary instead
  • textSecondary — use .MuiPaginationItem-text.MuiPaginationItem-colorSecondary instead
  • outlinedPrimary — use .MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary instead
  • outlinedSecondary — use .MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary 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/pagination-item-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: pagination Changes related to the pagination. label 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 ▼-192B(-0.04%) ▼-45B(-0.03%)
@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 b572d3b

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@siriwatknp siriwatknp merged commit 9139ae2 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: pagination Changes related to the pagination.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants