Adjust base component styles

This commit is contained in:
jeffvli 2022-12-22 01:59:02 -08:00
parent 57c34637cf
commit a4584ecd5c
4 changed files with 8 additions and 5 deletions

View file

@ -47,10 +47,11 @@ export const SearchInput = ({
input: {
backgroundColor: isOpened ? 'inherit' : 'transparent !important',
border: 'none !important',
cursor: isOpened ? 'text' : 'pointer',
padding: isOpened ? '10px' : 0,
},
}}
width={isOpened ? openedWidth || 200 : initialWidth || 50}
width={isOpened ? openedWidth || 150 : initialWidth || 50}
onChange={onChange}
onKeyDown={handleEscape}
/>