bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/checkbox/styles.js

26 lines
643 B
JavaScript
Raw Normal View History

2022-12-15 04:03:23 +08:00
import { colorText, colorSuccess } from '/imports/ui/stylesheets/styled-components/palette';
2023-05-03 03:24:06 +08:00
import BaseCheckbox from '@mui/material/Checkbox';
import FormControlLabel from '@mui/material/FormControlLabel';
import { styled } from '@mui/system';
2021-11-06 01:21:35 +08:00
2023-05-03 03:24:06 +08:00
const Checkbox = styled(BaseCheckbox)(() => ({
'&.Mui-checked': {
2022-12-15 04:03:23 +08:00
color: `${colorSuccess} !important`,
},
2023-05-03 03:24:06 +08:00
}));
2021-11-06 01:21:35 +08:00
2023-05-03 03:24:06 +08:00
const Label = styled(FormControlLabel)(() => ({
'& .MuiFormControlLabel-label': {
2022-12-15 04:03:23 +08:00
fontFamily: 'inherit !important',
color: `${colorText} !important`,
},
2023-05-03 03:24:06 +08:00
'&.Mui-disabled': {
2022-12-15 04:03:23 +08:00
cursor: 'not-allowed !important',
},
2023-05-03 03:24:06 +08:00
}));
2021-11-06 01:21:35 +08:00
export default {
2022-12-15 04:03:23 +08:00
Checkbox,
Label,
2021-11-06 01:21:35 +08:00
};