fix: fixing match design (#4577)
* fixing select token favorite icon to match design Co-authored-by: Alex Ball <alexball@UNISWAP-MAC-038.local>
This commit is contained in:
parent
eeea3d2dcc
commit
1cdaff8ddf
@ -16,7 +16,7 @@ const StyledFavoriteButton = styled.button<{ active: boolean }>`
|
|||||||
padding: 0px 16px;
|
padding: 0px 16px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background-color: ${({ theme, active }) => (active ? theme.accentActiveSoft : theme.backgroundInteractive)};
|
background-color: ${({ theme, active }) => (active ? theme.accentActiveSoft : theme.backgroundInteractive)};
|
||||||
border: none;
|
border: ${({ active, theme }) => (active ? `1px solid ${theme.accentActive}` : 'none')};
|
||||||
color: ${({ theme, active }) => (active ? theme.accentActive : theme.textPrimary)};
|
color: ${({ theme, active }) => (active ? theme.accentActive : theme.textPrimary)};
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@ -24,6 +24,7 @@ const StyledFavoriteButton = styled.button<{ active: boolean }>`
|
|||||||
|
|
||||||
:hover {
|
:hover {
|
||||||
background-color: ${({ theme, active }) => !active && theme.backgroundModule};
|
background-color: ${({ theme, active }) => !active && theme.backgroundModule};
|
||||||
|
opacity: ${({ active }) => (active ? '60%' : '100%')};
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
const FavoriteText = styled.span`
|
const FavoriteText = styled.span`
|
||||||
@ -38,11 +39,7 @@ export default function FavoriteButton() {
|
|||||||
return (
|
return (
|
||||||
<StyledFavoriteButton onClick={() => setShowFavorites(!showFavorites)} active={showFavorites}>
|
<StyledFavoriteButton onClick={() => setShowFavorites(!showFavorites)} active={showFavorites}>
|
||||||
<FavoriteButtonContent>
|
<FavoriteButtonContent>
|
||||||
<Heart
|
<Heart size={17} color={showFavorites ? theme.accentActive : theme.textPrimary} />
|
||||||
size={17}
|
|
||||||
color={showFavorites ? theme.accentActive : theme.textPrimary}
|
|
||||||
fill={showFavorites ? theme.accentActive : 'transparent'}
|
|
||||||
/>
|
|
||||||
<FavoriteText>
|
<FavoriteText>
|
||||||
<Trans>Favorites</Trans>
|
<Trans>Favorites</Trans>
|
||||||
</FavoriteText>
|
</FavoriteText>
|
||||||
|
@ -87,8 +87,9 @@ const Tokens = () => {
|
|||||||
</TitleContainer>
|
</TitleContainer>
|
||||||
<FiltersWrapper>
|
<FiltersWrapper>
|
||||||
<FiltersContainer>
|
<FiltersContainer>
|
||||||
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
|
||||||
<FavoriteButton />
|
<FavoriteButton />
|
||||||
|
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
||||||
|
|
||||||
<TimeSelector />
|
<TimeSelector />
|
||||||
</FiltersContainer>
|
</FiltersContainer>
|
||||||
<SearchContainer>
|
<SearchContainer>
|
||||||
@ -116,8 +117,8 @@ export const LoadingTokens = () => {
|
|||||||
</TitleContainer>
|
</TitleContainer>
|
||||||
<FiltersWrapper>
|
<FiltersWrapper>
|
||||||
<FiltersContainer>
|
<FiltersContainer>
|
||||||
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
|
||||||
<FavoriteButton />
|
<FavoriteButton />
|
||||||
|
{tokensNetworkFilterFlag === TokensNetworkFilterVariant.Enabled && <NetworkFilter />}
|
||||||
<TimeSelector />
|
<TimeSelector />
|
||||||
</FiltersContainer>
|
</FiltersContainer>
|
||||||
<SearchContainer>
|
<SearchContainer>
|
||||||
|
Loading…
Reference in New Issue
Block a user