Skip to content

[FlatButton] icon props are not passed through #4144

@echenley

Description

@echenley

Problem Description

Icon props aren't passed through when using FlatButton's icon prop. See android button in the docs: http://www.material-ui.com/v0.15.0-beta.2/#/components/flat-button. It is passed a color but remains black.

<FlatButton
  backgroundColor="#a4c639"
  hoverColor="#8AA62F"
  icon={<ActionAndroid color={fullWhite} />}
  style={style}
/>

Output:

screen shot 2016-05-02 at 8 58 55 pm

Versions

  • Material-UI: 0.15.0-beta.2
  • React: 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions