Error color for buttons, chips and possibly other components #16878
Labels
component: button
This is the name of the generic UI component, not the React module!
customization: theme
Centered around the theming features
duplicate
This issue or pull request already exists
Milestone
It's so typical and common use case for buttons (and some other components like Chip) to have error (so-called danger) color and MUI theme supports error color. I'm wondering why this is not supported.
I couldn't find anything in Material Design docs that deprecate the use of error color for buttons, and other implementations like @angular/material also support it.
I shouldn't be the first one to bring this up for sure, but I couldn't find any issue or anything in docs about this.
Summary 💡
color
prop inButton
andChip
should support error too.Right now, one solution is to create a custom button which renders a theme in which the primary color is changed to error color and render a button with primary color. This is a lot of work. A lot of hack, in fact!
Examples 🌈
Motivation 🔦
For Button: Buttons for dangerous actions usually have error color
For Chip: One use case is when it's used along with a text input to add a list of things and the user might enter an invalid input and the corresponding chip should have error state to communicate it.
The text was updated successfully, but these errors were encountered: