FontIcon inside an IconButton loose is color from props
In material-ui.alpha.1 when you put a FontIcon with color props inside an IconButton the prop will not work.
I think is related to this commit a99451a
Before styles was merged like that:
this.mergeStyles({styles.root, style, { color: this.state.hovered ? onColor : offColor })
And now it is:
Object.assign({styles.root, style})
Versions
- Material-UI: v0.15.0-alpha.1
- React: 0.14.7
- Browser: chrome 48.0.2564.116