TextField: fix error underline

This commit is contained in:
Sidney Alcantara
2021-09-13 19:44:37 +10:00
parent ece02c0cea
commit 7afd6c851e

View File

@@ -214,6 +214,10 @@ export const components = (theme: Theme): ThemeOptions => {
boxShadow: `0 0 0 1px ${theme.palette.action.inputOutline} inset,
0 -2px 0 0 ${theme.palette.primary.main} inset`,
},
"&.Mui-error, &.Mui-error:hover": {
boxShadow: `0 0 0 1px ${theme.palette.action.inputOutline} inset,
0 -2px 0 0 ${theme.palette.error.main} inset`,
},
borderRadius: theme.shape.borderRadius,
overflow: "hidden",