I would like to change the colour of the disabled text displayed in the textfield it is currently too light:
I would like the colour to be darker then this. I have tried the following:
import { withStyles } from '@material-ui/styles';
import TextField from '@material-ui/core/TextField';
const styles = {
disabledInput: {
color:'black',
},
},
class MainForm extends React.Component {render() {
render()
return (
<TextField
margin="dense"
variant="outlined"
disabled= true
InputProps={{className: { disabled: this.props.classes.disabledInput }}}
/>
);
}
}
export default withStyles(styles)(DynamicForm)
It is Similar to this question: Material UI | How to change the font colour of a disabled input text field?
