Chip component cannot turn on Dark theme with ThemeProvider #22370
Labels
component: chip
This is the name of the generic UI component, not the React module!
support: Stack Overflow
Please ask the community on Stack Overflow
Accessibility issue with Chip component in dark mode.
Runnable snippet: CodeSandbox
Current Behavior 😯
There are three Chip values (
default
,primary
, andsecondary
) that can be applied to thecolor
attribute.When enabling dark mode, we expect
primary
andsecondary
Chips will update itsbackground-color
.I tried to use
ThemeProvider
to change the theme type but to no avail. Only thedefault
color of Chip can be applied with dark/light mode.light mode
dark mode
Expected Behavior 🤔
Here is the official example:
light mode
dark mode
The text was updated successfully, but these errors were encountered: