Skip to content

Commit

Permalink
Form styles fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Cai <[email protected]>
  • Loading branch information
ciiay committed Jul 11, 2024
1 parent c18b955 commit 98a5eab
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,22 @@ import { ConditionsData, RuleParamsErrors, RulesData } from './types';

const useStyles = makeStyles(theme => ({
params: {
color: theme.typography.body1.color, // doesn't work
'& span': {
color: theme.palette.textSubtle,
},
'& input': {
color: theme.palette.textContrast,
},
'& fieldset': {
borderColor: theme.palette.grey[500],
},
'& div.MuiOutlinedInput-root:hover fieldset': {
borderColor:
theme.palette.type === 'dark' ? theme.palette.textContrast : 'unset',
},
'& label': {
color: theme.palette.textSubtle,
},
},
}));

Expand Down Expand Up @@ -91,6 +106,7 @@ export const ConditionsFormRowFields = ({
>
<Autocomplete
style={{ marginTop: '27px', width: '50%' }}
className={classes.params}
options={rules ?? []}
value={oldCondition?.rule || null}
getOptionDisabled={option =>
Expand Down Expand Up @@ -143,6 +159,7 @@ export const ConditionsFormRowFields = ({
/>
) : (
<TextField
className={classes.params}
style={{ width: '100%', marginTop: '27px' }}
disabled
label="string, string"
Expand Down

0 comments on commit 98a5eab

Please sign in to comment.