Merge pull request #1161 from bluewave-labs/hotFix/themeDisabled
Hot fix/theme disabled
This commit is contained in:
2 files changed
+8
-3
No files matched your search
@@ -37,6 +37,7 @@ const Checkbox = ({
|
|||||||
onChange,
|
onChange,
|
||||||
isDisabled,
|
isDisabled,
|
||||||
}) => {
|
}) => {
|
||||||
|
/* TODO move sizes to theme */
|
||||||
const sizes = { small: "14px", medium: "16px", large: "18px" };
|
const sizes = { small: "14px", medium: "16px", large: "18px" };
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
@@ -78,6 +79,10 @@ const Checkbox = ({
|
|||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: theme.palette.text.tertiary,
|
color: theme.palette.text.tertiary,
|
||||||
},
|
},
|
||||||
|
".MuiFormControlLabel-label.Mui-disabled": {
|
||||||
|
color: theme.palette.text.tertiary,
|
||||||
|
opacity: 0.25,
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user