-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Theme palette action selected color is not working in MUI version 5 #28691
Comments
Thanks for the report. The action is called For more background on the change, take a look on #21930 |
@mnajdova So are you saying that I can't just set the "selected" property? That does not work in the sample provided. It used to work in MUI version 4. All of the other action items work in V5 except for selected! |
@bbarnell we are following the recommendation from MD autonomy (using the primary color with a bit of opacity for the selected state), see #5186 (comment) |
Ok, I guess an override is my only option since the selected color is based on the theme primary color. |
This is clearly a regression. MUI should be usable for design systems other than material, including ones that use secondary colors on list items. At a minimum, it's obviously wrong that there's an item that can be specfied (selected) that changes nothing at all about the appearance of the theme. |
You would need to do a style override if you want to use secondary colors on list items, but I would say this is less common than using the primary colors, this is why the primary color is the default behavior.
The change was done in order to bring consistency between the states styles across different components, in my opinion this changes was going in the right direction, see #21930 The |
I am trying to adjust
|
When creating a custom theme, the palette.action.select color property is not working. The other action color properties are working great.
Current Behavior 😯
The select color on a dropdown select component is not working.
The default theme color is used instead.
Expected Behavior 🤔
The color on a selected dropdown menu item should be set.
Steps to Reproduce 🕹
See this code sample:
https://codesandbox.io/s/palette-select-demo2-6ql8p?file=/src/Demo.tsx
Your Environment 🌎
Edge and Chrome browsers on Windows 10.
The text was updated successfully, but these errors were encountered: