-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][PaginationItem] Deprecate composed classes for v6 #40673
[material-ui][PaginationItem] Deprecate composed classes for v6 #40673
Conversation
Netlify deploy previewhttps://deploy-preview-40673--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only had a small comment.
I also think we could standardize the type
classes (in a separate PR) I'm thinking deprecating:
firstLast
fortypeFirst
,typeLast
previousNext
fortypePrevious
,typeLast
ellipsis
fortypeStartEllipsis
,typeEndEllipsis
page
fortypePage
Although that's to be a lot of classes 😅
What do you think? @mui/core I would like to hear your opinion as well 😊
@@ -41,6 +41,7 @@ const useUtilityClasses = (ownerState) => { | |||
`size${capitalize(size)}`, | |||
variant, | |||
shape, | |||
['primary', 'secondary'].includes(color) && `color${capitalize(color)}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do
['primary', 'secondary'].includes(color) && `color${capitalize(color)}`, | |
color !== 'standard' && `color${capitalize(color)}`, |
As the logic is "add a color* class for all color values except the default"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it!! fixed in this commit 84f7045
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Merging this one, leaving the type
classes discussion for another PR if we decide to do it.
I updated the PR title to be clearer and match the other PRs. My first assumption reading the title was a deprecation of the |
part of #40417
new classes: primary , secondary
preview: https://deploy-preview-40673--material-ui.netlify.app/material-ui/api/pagination-item/#classes