fix: input focus and input error message

This commit is contained in:
Caio Cabral committed 2024-11-15 18:10:10 -05:00
1 parent 0b7c53673b
commit 6780374e16
1 file changed
+3 -3
+3 -3
View File
@@ -67,7 +67,7 @@ const Field = forwardRef(
borderColor: theme.palette.border.dark, borderColor: theme.palette.border.dark,
}, },
"&:has(.input-error) .MuiOutlinedInput-root fieldset": { "&:has(.input-error) .MuiOutlinedInput-root fieldset": {
borderColor: theme.palette.error.contrastText, borderColor: theme.palette.error.main,
}, },
display: hidden ? "none" : "", display: hidden ? "none" : "",
}} }}
@@ -83,7 +83,7 @@ const Field = forwardRef(
<Typography <Typography
component="span" component="span"
ml={theme.spacing(1)} ml={theme.spacing(1)}
color={theme.palette.error.contrastText} color={theme.palette.error.main}
> >
* *
</Typography> </Typography>
@@ -189,7 +189,7 @@ const Field = forwardRef(
<Typography <Typography
component="span" component="span"
className="input-error" className="input-error"
color={theme.palette.error.contrastText} color={theme.palette.error.main}
mt={theme.spacing(2)} mt={theme.spacing(2)}
sx={{ sx={{
opacity: 0.8, opacity: 0.8,