-
Notifications
You must be signed in to change notification settings - Fork 31
fix(Card): correct isInteractive prop's related boxshadow animation #3226
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
Conversation
|
View your CI Pipeline Execution ↗ for commit dc129d4 ☁️ Nx Cloud last updated this comment at |
aresnik11
left a comment
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.
Looks way less jumpy to me!!
dreamwasp
left a comment
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.
packages/gamut/src/Card/styles.tsx
Outdated
| }, | ||
| }, | ||
| initialOutline: { | ||
| boxShadow: `-6px 6px 0 0px ${theme.colors['background-current']}, -6px 6px 0 1px ${theme.colors['border-primary']}`, |
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.
i think it might be worth is in this file to make 8 and 6 a named constant or add comments here to make it clear what those values are / where they come from mathematically
|
📬 Published Alpha Packages: |
|
🚀 Styleguide deploy preview ready! Preview URL: https://695bfdd42932d04a0d7b7035--gamut-preview.netlify.app |

Overview
Fixes Card
boxShadowstyling for theisInteractiveoutline variant by adding aninitialanimation and separate animations foroutlineInitialandoutlineAnimatePR Checklist
Testing Instructions
Here's how the non-animated, but isInteractive states look:

Here's how the animated states look:

isInteractivestoryoutlinevariant specifically and notice that there's no longer a jump from outline to boxshadowPR Links and Envs