[Badge] Support other theme colors
See original GitHub issueExpected Behavior
When supplying the color
attribute, you should be able to use any of the colors supplied in the theme.palette
Current Behavior
Only: default/primary/accent
are supported.
Your Environment
Tech | Version |
---|---|
Material-UI | v1.0.0-beta.23 |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:14 (9 by maintainers)
Top Results From Across the Web
[Badge] Support other theme colors #9455 - mui/material-ui
js, RaisedButton.js, etc. and discovered they use "backgroundColor" as the CSS property to set the primary and accent color to the background.
Read more >themeColor - API Reference - Kendo UI Badge - Documentation
themeColor String (default: 'secondary'). Specifies the theme color of the component. Valid options are. inherit : no coloring will be applied to the...
Read more >Badge | Colors | JET Developer Cookbook - Oracle
This demo shows recommended mappings of states to colors ... NOTE : Badges are supported in the Redwood theme , they are not...
Read more >How to customize badges color and text size [all free themes]
In this tutorial I'll be showing you how you can quickly customize these badges' colors and size in a just a few lines...
Read more >Slack on Twitter: "@turoczy We're sorry to hear that. But good ...
We're sorry to hear that. But good news! You can change this back to red by going to Preferences > Themes > and...
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 FreeTop 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
Top GitHub Comments
In case anyone comes across this and wants to change the color, here’s how to use makeStyles from @material-ui/styles to change the color:
Forbidding using any color is really bad. It limits using this library. I not always need pure colors, I need gradients too. I even can’t use color from official palettes.