-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
customization: themeHigher level theming customizability.Higher level theming customizability.scope: buttonChanges related to the button.Changes related to the button.scope: iconsChanges related to the icons.Changes related to the icons.v0.x
Description
Problem description
Adding a FontIcon to a FlatButton as its icon property will ignore that icon's color property.
This can be seen in the documentation for FlatButton as well. The android icon inside the green button should be white, but instead it's black.
Steps to reproduce
This is the snippet I'm observing the problem in:
const fillIcon = <FontIcon className="material-icons" color="#f00">palette</FontIcon>
return (
<div>
{fillIcon}
<FlatButton icon={fillIcon} label="Fill" />
</div>
);
Versions
- Material-UI: 0.15.0
- React: 15.1.0
- Browser: Chrome 51.0, Firefox 47.0
Metadata
Metadata
Assignees
Labels
customization: themeHigher level theming customizability.Higher level theming customizability.scope: buttonChanges related to the button.Changes related to the button.scope: iconsChanges related to the icons.Changes related to the icons.v0.x
