fix(striker-ui): make required icon brighter in OutlinedInputLabel

main
Tsu-ba-me 2 years ago
parent 1bba020b55
commit 0f573fe3e0
  1. 12
      striker-ui/components/OutlinedInputLabel/OutlinedInputLabel.tsx

@ -1,3 +1,4 @@
import { Star as MUIRequiredIcon } from '@mui/icons-material';
import { import {
Box, Box,
InputLabel as MUIInputLabel, InputLabel as MUIInputLabel,
@ -5,7 +6,6 @@ import {
InputLabelProps as MUIInputLabelProps, InputLabelProps as MUIInputLabelProps,
svgIconClasses as muiSvgIconClasses, svgIconClasses as muiSvgIconClasses,
} from '@mui/material'; } from '@mui/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';
@ -27,7 +27,11 @@ const OutlinedInputLabel = (
...inputLabelRestProps ...inputLabelRestProps
} = inputLabelProps; } = inputLabelProps;
const combinedSx = { const combinedSx = {
color: `${GREY}9f`, color: `${GREY}9F`,
[`& .${muiSvgIconClasses.root}`]: {
color: GREY,
},
[`&.${muiInputLabelClasses.focused}`]: { [`&.${muiInputLabelClasses.focused}`]: {
backgroundColor: GREY, backgroundColor: GREY,
@ -62,7 +66,9 @@ const OutlinedInputLabel = (
}} }}
> >
{isNotifyRequired && ( {isNotifyRequired && (
<RequiredIcon sx={{ marginLeft: '-.2rem', marginRight: '.4rem' }} /> <MUIRequiredIcon
sx={{ marginLeft: '-.2rem', marginRight: '.4rem' }}
/>
)} )}
{children} {children}
</Box> </Box>

Loading…
Cancel
Save