-
-
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
[FontIcon] inside an IconButton loose is color from props #3655
Labels
Comments
pradel
changed the title
FontIcon inside an IconButton loose is color
[FontIcon] inside an IconButton loose is color
Mar 10, 2016
pradel
changed the title
[FontIcon] inside an IconButton loose is color
[FontIcon] inside an IconButton loose is color from props
Mar 10, 2016
I found it too. I have to define colors with inline-style for the time being. |
Duplicate of #3577 |
This was referenced Aug 19, 2021
This was referenced Sep 12, 2021
oliviertassinari
added
the
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
label
Dec 21, 2022
zannager
added
v0.x
package: icons
Specific to @mui/icons
and removed
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
labels
Jan 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FontIcon inside an IconButton loose is color from props
In material-ui.alpha.1 when you put a FontIcon with color props inside an IconButton the prop will not work.
I think is related to this commit a99451a
Before styles was merged like that:
this.mergeStyles({styles.root, style, { color: this.state.hovered ? onColor : offColor })
And now it is:
Object.assign({styles.root, style})
Versions
The text was updated successfully, but these errors were encountered: