final-form-material-ui icon indicating copy to clipboard operation
final-form-material-ui copied to clipboard

How to override the color of outlines of outlined input?

Open serendipity1004 opened this issue 6 years ago • 1 comments

<Field
    className={classes.textField}
    name="
    color="primary"
    component={TextField}
    type="text"
    variant="outlined"
    required={true}
    label="email"/>

I am currently using the component like above. However, even when I have set the primary color to be orange in the theme, the textfield outline color stays black and the error color is red. How do I change the outline color?

serendipity1004 avatar Mar 25 '19 02:03 serendipity1004

I have this problem too.

It seems like a bug in final-form-material-ui.

It does not forward the focused state flag. If you look in the react dev tools, focus on the field you will see the focused is not true. If you enable it in the dev tools, you will see the correct color.

zsolt-dev avatar May 22 '19 09:05 zsolt-dev