New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fixing color of buttons #5179
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/nft/components/bag/BagHeader.tsx
Outdated
|
||
:hover { | ||
color: ${({ theme }) => theme.accentActive}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we had a random blue hoverstate
@@ -8,7 +8,8 @@ export const container = style([ | |||
paddingTop: '4', | |||
}), | |||
{ | |||
width: '300px', | |||
width: '308px', | |||
paddingRight: '8px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the shadow on the right slider overlaps the adjacent div, which creates a line to the right that looks strange(light mode only). This maintains the original dimensions while solving that issue
@@ -41,7 +41,6 @@ export const commonButtonStyles = style([ | |||
sprinkles({ | |||
borderRadius: '12', | |||
transition: '250', | |||
boxShadow: { hover: 'elevation' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common button styles has a boxShadow. Not a heavily used style, but we removed boxShadows from buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hardcode white vs use design system colors?
@@ -37,7 +37,7 @@ export const FilterButton = ({ | |||
width={isMobile ? '44' : 'auto'} | |||
height="44" | |||
whiteSpace="nowrap" | |||
color="textPrimary" | |||
color="white" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure we want to hardcode this tow hite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a merge conflict, i changed this upstream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. (I think it might also be easy to split out the number formatting change in a different PR since I think the colors change is a bit tricker)
borderRadius: '4px', | ||
border: 'none', | ||
boxShadow: `${theme.shallowShadow.slice(0, -1)}`, | ||
boxShadow: colorsDark.shallowShadow.slice(0, -1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aren't we pulling this from theme anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theme has a different shadow color. I couldn't find this exact shadow defined anywhere but in darktheme.
@@ -372,7 +372,7 @@ export const AssetPriceDetails = ({ asset, collection }: AssetPriceDetailsProps) | |||
} | |||
}} | |||
> | |||
<SubHeader lineHeight={'20px'}> | |||
<SubHeader color="white" lineHeight={'20px'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be primaryColor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
primary isn't white in light theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aballerr could you sync with yushin on this? Apparently they defined a button-label
in the design system that reflects what the text colors should be for light and dark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
@media screen and (max-width: ${MOBILE_MEDIA_BREAKPOINT}) { | ||
padding-left: 16px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving, but i feel like we should be avoiding using specific colors vs theme variables
https://uniswaplabs.atlassian.net/browse/WEB-2159
https://uniswaplabs.atlassian.net/browse/WEB-2104
Fixing a bunch of button text colors on light mode
Also fixing royalty fees