1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

PR comments

This commit is contained in:
andreas-unleash 2022-07-26 13:10:30 +03:00
parent f99937a334
commit 9ce7572ba0
6 changed files with 14 additions and 11 deletions

View File

@ -3,7 +3,7 @@ import { makeStyles } from 'tss-react/mui';
export const useStyles = makeStyles()(theme => ({
inputContainer: {
padding: '1rem',
backgroundColor: theme.palette.grey[100],
backgroundColor: theme.palette.neutral.light,
},
buttonContainer: {
display: 'flex',

View File

@ -69,7 +69,7 @@ export const RestrictiveLegalValues = ({
Select values from a predefined set
</ConstraintFormHeader>
<ConditionallyRender
condition={Boolean(legalValues.length > 100)}
condition={legalValues.length > 100}
show={
<ConstraintValueSearch
filter={filter}

View File

@ -2,22 +2,22 @@ import { styled } from '@mui/system';
import { IconButton } from '@mui/material';
export const StyledToggleButtonOff = styled(IconButton)(({ theme }) => ({
width: 28,
minWidth: '28px!important',
minHeight: 40,
backgroundColor: 'white',
width: '28px',
minWidth: '28px',
maxWidth: '28px',
backgroundColor: theme.palette.tertiary.background,
borderRadius: theme.shape.borderRadius,
padding: '0 1px 0',
marginRight: '1rem',
'&:hover': {
background: theme.palette.grey[300],
background: theme.palette.tertiary.contrast[300],
},
}));
export const StyledToggleButtonOn = styled(IconButton)(({ theme }) => ({
width: 28,
minWidth: '28px!important',
minHeight: 40,
width: '28px',
minWidth: '28px',
maxWidth: '28px',
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.main,
borderRadius: theme.shape.borderRadius,

View File

@ -33,7 +33,6 @@ export const ConstraintAccordionView = ({
);
const handleClick = () => {
console.log('click');
if (expandable) {
setExpanded(!expanded);
}

View File

@ -95,6 +95,8 @@ export default createTheme({
light: colors.grey[200],
main: colors.grey[400],
dark: colors.grey[600],
background: 'white',
contrast: colors.grey[300]
},
divider: colors.grey[300],
dividerAlternative: colors.grey[400],

View File

@ -88,6 +88,8 @@ declare module '@mui/material/styles' {
main: string;
light: string;
dark: string;
background: string;
contrast: string
};
}