-
Notifications
You must be signed in to change notification settings - Fork 30
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
style(Tag): Update Tag colors #2911
Conversation
Nice, thanks! - I realized that focus states are a little messed up after I implemented my changes, gonna take some time to fix that |
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.
these look great! only thing i'm noticing is something slightly off with the focus styles on hover of one of the examples - the focus styles seem to be taking up the full width of their container?
if this is only happening in this example and not in actual code i'm happy to ✅ so i'm gonna take a look at mono now~
width: '100%', | ||
maxWidth: 'fit-content', |
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.
chef's kiss!~
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.
lol this was your code! 😂
I see the issue — I'm guessing to add more spacing around tags, there was a .5 rem margin added around the tag itself which makes the focus outline bigger. I've added a box around the tag now to include this padding and this should fix the issue. Thanks for catching!! |
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.
[hoverAndFocus]: { | ||
color: 'background', | ||
bg: 'secondary-hover', |
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.
@@ -174,6 +174,7 @@ export const getMemoizedStyles = ( | |||
...tagBaseStyles, | |||
cursor: 'pointer', | |||
background: theme.colors.background, | |||
borderRadius: '4px', |
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.
you could grab this from the tagBorderRadius var just so we're ensuring it stays consistent!
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.
these look wonderful! beautiful job ✨
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Updates tags to use the correct color tokens.
Current implementation of tags somewhat uses ColorMode and needs to invert the colors to work.
Major Changes:
Updates tags to use the correct color tokens.
PR Checklist
Testing Instructions
?path=/docs/atoms-tag--tag-variants
—
Mono
test50
—
Monolith
https://pr-38096-monolith.dev-eks.codecademy.com/admin/test_user?prefill_id=66ab9a074e03aa000159fe35)
^ the settings is important because we need to upgrade the user (and can't seem to upgrade free or pro-lite users)
?coupon=test50
Screenshots:
Mono:
Monolith:
PR Links and Envs