-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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][Button] Convert to support CSS extraction #41378
Conversation
Netlify deploy previewhttps://deploy-preview-41378--material-ui.netlify.app/ @material-ui/core: parsed: +0.03% , gzip: +0.09% Bundle size reportDetails of bundle changes (Toolpad) |
Moved to v6 |
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.
Had 2 small comments for the Button CSS extraction.
The styled changes make sense to me, although I might not have as much context as Brijesh or Marija.
Could these changes be split into separate PRs? One for the Button CSS extraction and another for the styled changes?
props({ ownerState }) { | ||
return ownerState.size === 'small'; | ||
}, |
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.
props({ ownerState }) { | |
return ownerState.size === 'small'; | |
}, | |
props: { size: 'small' } |
Should work, right?
The same comment for the similar prop callbacks below
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.
Yes, thanks.
That makes sense. It can be split. |
@@ -12,6 +12,7 @@ | |||
"@pigment-css/react": "workspace:^", | |||
"@mui/utils": "workspace:^", | |||
"@mui/base": "workspace:^", | |||
"@mui/lab": "workspace:^", |
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.
The demo contains LoadingButton from @mui/lab
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.
LGTM
Screen.Recording.2567-03-22.at.15.04.43.mov