I am having trouble styling the notchedOutline
of a disabled <OutlinedInput />
in my custom MUI theme. My goal is to make the border color lighter than the default color when the input is disabled.
Here is what I have attempted so far:
const theme = {
mode: 'light',
primary: {
main: primaryBlue,
},
components: {
MuiOutlinedInput: {
styleOverrides: {
// Trying to combine 'disabled' & 'notchedOutline'
notchedOutline: {
borderColor: 'red' // currently set to red
},
disabled: {
borderColor: 'green', // should be green but it's not working
}
}
}
}
}
Any suggestions on how to achieve this?