CSS Vars Theme not applying correct styles when using nested/forced color schemes #43824
Labels
bug 🐛
Something doesn't work
customization: theme
Centered around the theming features
package: material-ui
Specific to @mui/material
Steps to reproduce
Link to live example:
Steps:
Use the toggle button group to switch between light and dark mode
Current behavior
The button labeled "LIGHT" switches its text color from black to white.
Expected behavior
The "LIGHT" button should not change its text color when switching themes.
Context
The docs say you should be able to force a specific color scheme by applying the configured selector to a parent element:
Your environment
Browser: Arc (Chromium)
npx @mui/envinfo
Search keywords: theme cssvars
The text was updated successfully, but these errors were encountered: