parent
bcda785f3c
commit
323d162172
3 changed files with 42 additions and 31 deletions
@ -0,0 +1,35 @@ |
||||
import { |
||||
OutlinedInput as MUIOutlinedInput, |
||||
outlinedInputClasses as muiOutlinedInputClasses, |
||||
styled, |
||||
} from '@mui/material'; |
||||
|
||||
import { GREY, TEXT, UNSELECTED } from '../../lib/consts/DEFAULT_THEME'; |
||||
|
||||
const OutlinedInput = styled(MUIOutlinedInput)({ |
||||
color: GREY, |
||||
|
||||
[`& .${muiOutlinedInputClasses.notchedOutline}`]: { |
||||
borderColor: UNSELECTED, |
||||
}, |
||||
|
||||
'&:hover': { |
||||
[`& .${muiOutlinedInputClasses.notchedOutline}`]: { |
||||
borderColor: GREY, |
||||
}, |
||||
}, |
||||
|
||||
[`&.${muiOutlinedInputClasses.focused}`]: { |
||||
color: TEXT, |
||||
|
||||
[`& .${muiOutlinedInputClasses.notchedOutline}`]: { |
||||
borderColor: GREY, |
||||
|
||||
'& legend': { |
||||
paddingRight: '1.2em', |
||||
}, |
||||
}, |
||||
}, |
||||
}); |
||||
|
||||
export default OutlinedInput; |
@ -0,0 +1,3 @@ |
||||
import OutlinedInput from './OutlinedInput'; |
||||
|
||||
export default OutlinedInput; |
Loading…
Reference in new issue