fix(striker-ui): improve contrast between input text and label

main
Tsu-ba-me 2 years ago
parent 5e9c38b008
commit 2ffe2c6f61
  1. 4
      striker-ui/components/OutlinedInput/OutlinedInput.tsx
  2. 2
      striker-ui/components/OutlinedInputLabel/OutlinedInputLabel.tsx

@ -76,6 +76,10 @@ const OutlinedInput: FC<OutlinedInputProps> = (outlinedInputProps) => {
borderColor: UNSELECTED, borderColor: UNSELECTED,
}, },
[`& .${muiOutlinedInputClasses.input}`]: {
color: TEXT,
},
'&:hover': { '&:hover': {
[`& .${muiOutlinedInputClasses.notchedOutline}`]: { [`& .${muiOutlinedInputClasses.notchedOutline}`]: {
borderColor: GREY, borderColor: GREY,

@ -27,7 +27,7 @@ const OutlinedInputLabel = (
...inputLabelRestProps ...inputLabelRestProps
} = inputLabelProps; } = inputLabelProps;
const combinedSx = { const combinedSx = {
color: GREY, color: `${GREY}9f`,
[`&.${muiInputLabelClasses.focused}`]: { [`&.${muiInputLabelClasses.focused}`]: {
backgroundColor: GREY, backgroundColor: GREY,

Loading…
Cancel
Save