-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Customize icon color with themes #4696
Comments
@igorpreston Yes, I looked into the issue and couldn't find any way to change the color of all |
@aahan96 yes, that's what i've been doing recently as well. I also tried creating HOC to wrap FontIcon and providing custom iconColor variable to the MUi theme, but it is becoming annoying to import decorated FontIcon from local project, rather than from MUI. MUI themes need definitely to support separate iconColor variable with fallback to textColor, which applies to all FontIcon and IconButton components. |
This seems to be more of an Enhancement than a Question. Any updates on this? |
That's right. We would accept a PR to add a
That's a pattern we will most likely encourage for the |
@oliviertassinari can you clarify the intent of closing this issue? Will a convenient way to set icon colors separately from text color only come when v1 is released? Is v1 close enough that solving these issues in v0.x is no longer a concern? |
@tgiddings The issue was closed by the linked pull request. With the following change, users can override all the styles injected by Material-UI with ease. But even without this change, you should be able to change the color by providing your own CSS.
Yes. |
Hi,
Is there a way to customize all FontIcon and IconButton colors using MUI themes? I digged up the code and noticed that FontIcon is bound by textColor property, that's absolutely sad.
Thoughts?
The text was updated successfully, but these errors were encountered: