Skip to content

[FontIcon] inside an IconButton loose is color from props #3655

@pradel

Description

@pradel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions