The color prop for a SVG icon inside a FloatingActionButton is not used. In below example, the icon color is the default white color, not red as expected. This was working in version 0.14.4
import PlaceIcon from 'material-ui/lib/svg-icons/maps/place';
<FloatingActionButton>
<PlaceIcon color="#ff0000" />
</FloatingActionButton>
@jkettmann - the color is controlled by <FloatingActionButton /> so it can set it for disabled etc.
You could create a custom theme, or update the theme on context with the muiThemefloatingActionButton.iconColor and floatingActionButton.disabledTextColor keys.
Or override the icon style with:
<FloatingActionButton iconStyle={{fill: '#FF0000'}}>
<PlaceIcon />
</FloatingActionButton>
@jkettmann : Did you try the above solution? Were you able to get it resolved?
I am closing this issue for now. If you still feel that the above solution/suggestion does not help you can reopen it again or seek help on the gitter channel of material-ui or post the question in stackoverflow with 'material-ui' tag.
@tintin1343 Yes this solved my problem
In my opinion the documents should be updated to reflect that FloatingActionButton is gonna eat the valid props documented in child components, or we should reopen this so that it can be tracked and some beautiful engineers can make this work.
Most helpful comment
@jkettmann - the color is controlled by
<FloatingActionButton />so it can set it for disabled etc.You could create a custom theme, or update the theme on context with the
muiThemefloatingActionButton.iconColorandfloatingActionButton.disabledTextColorkeys.Or override the icon style with: