fix: disabled labels
This commit is contained in:
1 parent
6780374e16
commit
d849a84f02
1 file changed
+5
@@ -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,
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user