Closed cdcasey closed 5 years ago
You need to increase the specificity. More about this topic under https://material-ui.com/customization/components/#pseudo-classes
As we're using JSS I tried this:
But nothing overrides the .MuiInput-underline.Mui-disabled::before class that defines that bottom border.
The Select components show a dotted underline when disabled. There appears to be no way to change this styling.
Current Behavior 😯
The bottom border stays dotted no matter what I try.
Expected Behavior 🤔
The bottom border should change according to specified styling.
Steps to Reproduce 🕹
1) Create a select component 2) Specify that the component is disabled 3) Style the disabled state with classes={{ disabled: classes. }}
https://codesandbox.io/s/material-demo-kiws1
Steps:
Unrelated, I tried to delete that second Select component, but got a CORS error when doing so. I have no idea what's going on there.
Context 🔦
I would like to style this component reliably in all states.
Your Environment 🌎