[Button] Contained with inherit prop not adapting on dark mode #29749
Labels
bug 馃悰
Something doesn't work
component: button
This is the name of the generic UI component, not the React module!
design: material
This is about Material Design, please involve a visual or UX designer in the process
Duplicates
Latest version
Current behavior 馃槸
As mentioned by @JeremyGrieshop in another thread #28363 (comment) the contained variant with the inherit color prop does not adapt its background color.
Code sandbox by Jeremy demonstrating the issue: https://codesandbox.io/s/togglecolormode-material-demo-forked-1j544?file=/demo.js
Expected behavior 馃
Since it is using grey[300] for the light mode, maybe switching to something like grey[700] or dark mode?
![image](https://user-images.githubusercontent.com/5917515/142410379-fd89458e-231c-4d14-8791-a8361d4f5044.png)
Steps to reproduce 馃暪
Steps:
Context 馃敠
No response
Your environment 馃寧
@mui/material": "5.1.0"
The text was updated successfully, but these errors were encountered: