-
-
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
SVG fontSize sets by default to true and ignore width and height for SVG #10349
Comments
@palaniichukdmytro Would this change solve your issue?
|
@oliviertassinari actually better do not use fontSize as css api, and style as you mention in style. |
@palaniichukdmytro Sorry, I don't understand your point. What do you think we should change and how you would use the component with this change? |
As you can see here when I use svg icon itself without fontSize boolean props , it works as expected. But when I wrapped to IconButton the svg inside use fontsize , but I did not provide it |
@palaniichukdmytro Thanks. I confirm the plan change will solve your issue. Basically, we will remove the |
SVG fontSize sets by default to true and ignore width and height for SVG
Expected Behavior
Expected use root overrides style when fonwSize are not provided
So I have overrides for MuiSvgIcon
Current Behavior
But when I use my icon without fontSize props, it steal overrides the root style:
<Add />
Context
Your Environment
The text was updated successfully, but these errors were encountered: