New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][Switch] Unsupported color after upgrade @mui/material to 5.15.13 #41939
Comments
Hello, Environment: Steps Reproduced: Updated to MUI v.5.15.13 and v.5.15.15. Outcome: Received the error as reported: "MUI: Unsupported 58, 53, 65 color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()." |
The error is self-descriptive, what you are providing is not a valid color. Which version did this work with? I tried an older version (before v.15.13), and it still yields the same error: https://stackblitz.com/edit/react-ceuj3r-hci311?file=package.json |
Also got this after an update to 5.15.15 from 5.14.10 without changes in our application's code |
Looking at my upgrade path, I was actually on 5.15.12 not 5.15.13 so it's possible it wasn't this commit. I'm going to update my code to include a call to rgb() to make things work on my project. If that's the desired path forward, that'll work fine. But the behavior has certainly changed from previously -- that's all I was trying to point out. If you don't want to support the old behavior, feel free to close this. |
Steps to reproduce
Link to live example: (https://stackblitz.com/edit/react-ceuj3r-aa3qzw?file=theme.ts)
Steps:
Current behavior
Gives me the error:
MUI: Unsupported
58, 53, 65
color.The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
Expected behavior
Renders the color without error
Context
No response
Your environment
I couldn't get
npx @mui/envinfo
to work.Tested with Chrome browser.
Search keywords: Switch, theme, palette, ThemeProvider
The text was updated successfully, but these errors were encountered: