I am currently trying to change the default colors of MUI TextField (text and border). I have failed with several approaches as mentioned by the official web site. Among all the solutions I have experimented, the most promising one is this one:
<TextField InputLabelProps={{ style: { color: 'white' } }} ...>
This solution changes the color of the text when unedited. As soon as I edit the text, the color takes it original value. I also tried this solution without any success:
const theme = createTheme({
components: {
MuiTextField: {
defaultProps: {
style: { color: 'white'}
}
}
}
});
After applying this theme, I had no changes. Did someone experimented the same issue ? Regards.