Commit 1f740cf8 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

feat: update search icon (#4459)

* feat: update search icon

* re add chevron on mobile

* icon uses currentColor

* icon uses currentColor
Co-authored-by: default avatarCharlie <charlie@uniswap.org>
parent 55c5f030
...@@ -134,14 +134,6 @@ export const suggestionIcon = sprinkles({ ...@@ -134,14 +134,6 @@ export const suggestionIcon = sprinkles({
flexShrink: '0', flexShrink: '0',
}) })
export const magnifyingGlassIcon = style([
sprinkles({
width: '20',
height: '20',
marginRight: '12',
}),
])
export const sectionHeader = style([ export const sectionHeader = style([
subheadSmall, subheadSmall,
sprinkles({ sprinkles({
......
...@@ -339,12 +339,13 @@ export const SearchBar = () => { ...@@ -339,12 +339,13 @@ export const SearchBar = () => {
justifyContent={isOpen || phase1Flag === NftVariant.Enabled ? 'flex-start' : 'center'} justifyContent={isOpen || phase1Flag === NftVariant.Enabled ? 'flex-start' : 'center'}
onFocus={() => !isOpen && toggleOpen()} onFocus={() => !isOpen && toggleOpen()}
onClick={() => !isOpen && toggleOpen()} onClick={() => !isOpen && toggleOpen()}
gap="12"
> >
<Box display={{ mobile: 'none', tabletSm: 'flex' }}> <Box display={{ mobile: 'none', tabletSm: 'flex' }}>
<MagnifyingGlassIcon className={styles.magnifyingGlassIcon} /> <MagnifyingGlassIcon />
</Box> </Box>
<Box display={{ mobile: 'flex', tabletSm: 'none' }} color="blackBlue" onClick={toggleOpen}> <Box display={{ mobile: 'flex', tabletSm: 'none' }} color="placeholder" onClick={toggleOpen}>
<ChevronLeftIcon className={styles.magnifyingGlassIcon} /> <ChevronLeftIcon />
</Box> </Box>
<Box <Box
as="input" as="input"
......
...@@ -961,18 +961,11 @@ export const FilterIcon = (props: SVGProps) => ( ...@@ -961,18 +961,11 @@ export const FilterIcon = (props: SVGProps) => (
) )
export const MagnifyingGlassIcon = (props: SVGProps) => ( export const MagnifyingGlassIcon = (props: SVGProps) => (
<svg {...props} fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path <path
d="M20.9984 21.0004L16.6484 16.6504" d="M15 15L11.2439 11.2439M12.3821 6.69106C12.3821 9.83414 9.83414 12.3821 6.69106 12.3821C3.54797 12.3821 1 9.83414 1 6.69106C1 3.54797 3.54797 1 6.69106 1C9.83414 1 12.3821 3.54797 12.3821 6.69106Z"
stroke="currentColor" stroke="currentColor"
strokeWidth="2" strokeWidth="1.5"
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
/> />
...@@ -1299,8 +1292,8 @@ export const PlusIconLarge = (props: SVGProps) => ( ...@@ -1299,8 +1292,8 @@ export const PlusIconLarge = (props: SVGProps) => (
) )
export const ChevronLeftIcon = (props: SVGProps) => ( export const ChevronLeftIcon = (props: SVGProps) => (
<svg fill="none" xmlns="http://www.w3.org/2000/svg" {...props}> <svg width="8" height="16" viewBox="0 0 8 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M15 6L9 12L15 18" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> <path d="M7 1L1 7L7 13" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
</svg> </svg>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment