fix(striker-ui): change required icon in input label

main
Tsu-ba-me 3 years ago
parent f06ffff3d8
commit f49dbf73dd
  1. 9
      striker-ui/components/OutlinedInputLabel/OutlinedInputLabel.tsx

@ -5,7 +5,7 @@ import {
InputLabelProps as MUIInputLabelProps, InputLabelProps as MUIInputLabelProps,
svgIconClasses as muiSvgIconClasses, svgIconClasses as muiSvgIconClasses,
} from '@mui/material'; } from '@mui/material';
import { PriorityHighRounded as RequiredIcon } from '@mui/icons-material'; import { Star as RequiredIcon } from '@mui/icons-material';
import { BLACK, BORDER_RADIUS, GREY } from '../../lib/consts/DEFAULT_THEME'; import { BLACK, BORDER_RADIUS, GREY } from '../../lib/consts/DEFAULT_THEME';
@ -37,8 +37,7 @@ const OutlinedInputLabel = (
}, },
[`&.${muiInputLabelClasses.shrink} .${muiSvgIconClasses.root}`]: { [`&.${muiInputLabelClasses.shrink} .${muiSvgIconClasses.root}`]: {
fontSize: '1rem', display: 'none',
fontWeight: 700,
}, },
...sx, ...sx,
@ -63,7 +62,9 @@ const OutlinedInputLabel = (
flexDirection: 'row', flexDirection: 'row',
}} }}
> >
{isNotifyRequired && <RequiredIcon sx={{ marginLeft: '-.4rem' }} />} {isNotifyRequired && (
<RequiredIcon sx={{ marginLeft: '-.2rem', marginRight: '.2rem' }} />
)}
{children} {children}
</Box> </Box>
</MUIInputLabel> </MUIInputLabel>

Loading…
Cancel
Save