[FloatingActionButton] Color prop of icon not used in FloatingActionButton
See original GitHub issueThe 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>
Versions
- Material-UI: 0.15.0-alpha.2
- React: 0.14.7
- Browser: at least Chrome & Firefox
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[FloatingActionButton] Color prop of icon not used in ... - GitHub
The color prop for a SVG icon inside a FloatingActionButton is not used. In below example, the icon color is the default white...
Read more >Why is my FloatingActionButton icon black? - Stack Overflow
Following is the code I'm using. I'm using androidx. Every FAB has a black icon, even if it has a white color. mylayout.xml...
Read more >Change Floating Action Button Color in Flutter - FlutterBeads
There is no straightforward way to change the floating action button border color. So the idea is to NOT use the floating action...
Read more >Flutter FloatingActionButton: A complete tutorial with examples
Learn all about Flutter's FloatingActionButton widget, including how to customize the FloatingAppButton and how to add hero animations.
Read more >FloatingActionButton class - material library - Dart API
This example shows how to display a FloatingActionButton in a Scaffold, with a pink backgroundColor and a thumbs up Icon. // Add your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
andfloatingActionButton.disabledTextColor
keys.Or override the icon style with:
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.