-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
[Checkbox][material] Add size classes #38182
Conversation
Netlify deploy previewhttps://deploy-preview-38182--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.
Nice! What do you think about adding sizeMedium
as well? We could do size${capitalize(size)}
like we have for the color
prop, which would add the class for size overrides as well
Yeah, I somehow incorrectly assumed that we don't apply classes for default states, but that's not true. It's updated now. |
I hate to keep piling on but the |
@mogrady88 thanks for the heads up! I created an issue to track this: #38397 |
Places the
.MuiCheckbox-sizeSmall
and.MuiCheckbox-sizeMedium
class on checkboxes wheresize="small"
andsize="medium"
, respectively, similarly to how Button behaves.Closes #38176.