Open Wgil opened 6 years ago
I am also facing this problem currently... any fixes???
I noticed something similar when trying to use the package with styled components. The issue seems to be in processProps when clsName is set it is done in the following way:
const clsName = className ||
material-icons ${sizeMapped} ${defaultColor} ${inactiveColor};
This creates a problem using styled components because even though I am not setting the className, styled components will set a className and this is picked up by material-icons-react.
changing this to:
const clsName =
material-icons ${sizeMapped} ${defaultColor} ${inactiveColor};
will get the icon to display.
Bump... this is still an issue!
Any update for this?, have same issue.
If you try to add the
className
prop the icon is not displayed. Instead, it shows the icon name.