mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Styling on the search button
This commit is contained in:
parent
d4529ca281
commit
c74f26a2f0
2 changed files with 16 additions and 13 deletions
|
|
@ -259,6 +259,20 @@ export const IconButton = styled(Button, {
|
|||
width: 40,
|
||||
height: 40,
|
||||
},
|
||||
searchButton: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
p: '0px',
|
||||
mr: '5px',
|
||||
width: '28px',
|
||||
height: '28px',
|
||||
color: '#898989',
|
||||
border: 'unset',
|
||||
background: '$thBackground',
|
||||
boxSizing: 'border-box',
|
||||
borderRadius: 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -276,13 +276,7 @@ export function SearchBox(props: SearchBoxProps): JSX.Element {
|
|||
}}
|
||||
>
|
||||
<IconButton
|
||||
css={{
|
||||
p: '0px',
|
||||
mr: '5px',
|
||||
width: '28px',
|
||||
height: '28px',
|
||||
color: '#898989',
|
||||
}}
|
||||
style="searchButton"
|
||||
onClick={(event) => {
|
||||
event.preventDefault()
|
||||
setSearchTerm('')
|
||||
|
|
@ -306,12 +300,7 @@ export function SearchBox(props: SearchBoxProps): JSX.Element {
|
|||
}}
|
||||
>
|
||||
<IconButton
|
||||
css={{
|
||||
mr: '5px',
|
||||
width: '28px',
|
||||
height: '28px',
|
||||
color: '#898989',
|
||||
}}
|
||||
style="searchButton"
|
||||
onClick={() =>
|
||||
requestAnimationFrame(() => inputRef?.current?.focus())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue