You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening because the material icons are loaded after the styled-component for icon and material icons have a font-size of 24px which is overriding the styled-component's small/medium/large.
Hey @pradipjs, thanks for the report. This is (sadly) an old issue: #29689, so I'm closing this one as duplicate. I'll leave a workaround option in the original issue.
Steps to reproduce
Steps:
Current behavior
Font size stays a same even if we set the value to small, large or medium.
Expected behavior
Fontsize should be as per the attribute value.
Context
It seems styles are not applying to icon component based on the attribute value.
Your environment
npx @mui/envinfo
Search keywords: "fontSize" attribute not working in Icon component
The text was updated successfully, but these errors were encountered: