-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[Radio] Migrate RadioButtonIcon to emotion #26068
[Radio] Migrate RadioButtonIcon to emotion #26068
Conversation
<RadioButtonUncheckedIcon fontSize={fontSize} className={classes.background} /> | ||
<RadioButtonCheckedIcon fontSize={fontSize} className={classes.dot} /> | ||
</span> | ||
<RadioButtonIconRoot className={clsx(classes.root, { 'Mui-checked': checked })}> |
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.
Does it need to use .Mui-checked
? It seems to be a private component that could leverage styleProps
.
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.
Wasn't sure whether is fine to change the specificity... In that case, we can add the style in the slot where it is required and we won't bump the specificity at all in the styles definition
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.
Updated to depend on styleProps
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.
Good point, maybe it will conflict with inheritance
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 couldn't spot any issues, updated to depend on styleProps
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 could notice a .Mui-checked used in https://deploy-preview-26068--material-ui.netlify.app/components/radio-buttons/#color but it has no implications
Seems like this is the last component from
@material-ui/core
that uses thewithStyles
API.