I'm having trouble updating the border color of the Material UI TextField component using Modular CSS. Despite my efforts, I can't seem to get it to work.
CSS (In Styles.module.css):
.formInput {
font-size: 18px !important;
font-family: Roboto, serif !important;
color: #057FA8 !important;
border-color: #057FA8 !important;
}
.formInput:hover {
border-color: #057FA8 !important;
}
JS:
import styles from './Styles.module.css';
...
<TextField id="name" name="name" label="Name" className={styles.formInput} value={formik.values.name} onChange={formik.handleChange}
error={Boolean(formik.errors.name)} helperText={formik.errors.name}
onBlur={(e) => {
e.preventDefault();
formik.validateField('name');
formik.setFieldTouched('name');
}}
margin='normal'
fullWidth
variant="outlined"
/>
Any assistance with this issue would be greatly valued.