We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Works:
<IconButton icon={InboxIcon} aria-label="Notifications" size="small" sx={{ color: 'green' }} /> <IconButton icon={InboxIcon} aria-label="Notifications" size="large" sx={{ color: 'green' }} />
Doesn't work:
<IconButton icon={InboxIcon} aria-label="Notifications" size="medium" sx={{ color: 'green' }} /> <IconButton icon={InboxIcon} aria-label="Notifications" sx={{ color: 'green' }} />
The default style rule takes precedence over the override in this case:
.bIJAok[data-component="IconButton"][data-no-visuals] { color: var(--fgColor-muted, var(--color-fg-muted, #656d76)); } .bIJAok[data-no-visuals] { color: green; }
While for small/large buttons it has extra specificity:
.LLQDD[data-size="small"][data-no-visuals] { color: green; } .LLQDD[data-component="IconButton"][data-no-visuals] { color: var(--fgColor-muted, var(--color-fg-muted, #656d76)); }
IconButton
v36.27.0
Chrome
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting this!
I'm tagging this into our design team's board to confirm whether this is expected/desired behavior or not.
Sorry, something went wrong.
@lesliecdubs this is a css specificity issue, no objection to fixing for consistency 👍
camertron
Successfully merging a pull request may close this issue.
Description
Works:
Doesn't work:
The default style rule takes precedence over the override in this case:
While for small/large buttons it has extra specificity:
Steps to reproduce
IconButton
with a color overrideVersion
v36.27.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: