Skip to content

Conversation

@LinKCoding
Copy link
Contributor

@LinKCoding LinKCoding commented Dec 4, 2025

Overview

Fixes Card boxShadow styling for the isInteractive outline variant by adding an initial animation and separate animations for outlineInitial and outlineAnimate

PR Checklist

  • Related to designs:
  • Related to JIRA ticket: GMT-136
  • I have run this code to verify it works
  • This PR includes unit tests for the code change
  • This PR includes testing instructions tests for the code change
  • The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Here's how the non-animated, but isInteractive states look:
image

Here's how the animated states look:
image

  1. Go to Card component story in Storybook
  2. Check over the isInteractive story
  3. Hover over the card to confirm the shadow animation is consistent for all Card instances
  4. Check over the outline variant specifically and notice that there's no longer a jump from outline to boxshadow
  5. Test in both light and dark mode

PR Links and Envs

Repository PR Link
Monolith Monolith PR
Mono Mono PR

@nx-cloud
Copy link

nx-cloud bot commented Dec 4, 2025

View your CI Pipeline Execution ↗ for commit dc129d4


☁️ Nx Cloud last updated this comment at 2026-01-05 18:04:12 UTC

@LinKCoding LinKCoding changed the title fix(Card): correct isInteractive prop's boxshadow dimensions fix(Card): correct isInteractive prop's related boxshadow animation Dec 12, 2025
@LinKCoding LinKCoding marked this pull request as ready for review December 12, 2025 16:12
@LinKCoding LinKCoding requested a review from a team as a code owner December 12, 2025 16:12
Copy link
Contributor

@aresnik11 aresnik11 left a 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!!

Copy link
Contributor

@dreamwasp dreamwasp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

my tiniest nit is that the border radius doesn't look like it matches here for the configurable border radius - this is such a huge improvement i think its worth shipping as is and creating another ticket

},
},
initialOutline: {
boxShadow: `-6px 6px 0 0px ${theme.colors['background-current']}, -6px 6px 0 1px ${theme.colors['border-primary']}`,
Copy link
Contributor

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

@codecademydev
Copy link
Collaborator

📬 Published Alpha Packages:

@codecademy/gamut@67.6.2-alpha.711972.0
@codecademy/gamut-kit@0.6.575-alpha.711972.0

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

@LinKCoding LinKCoding added the Ship It :shipit: Automerge this PR when possible label Jan 5, 2026
@codecademydev codecademydev merged commit 63098cd into main Jan 5, 2026
16 of 17 checks passed
@codecademydev codecademydev removed the Ship It :shipit: Automerge this PR when possible label Jan 5, 2026
@codecademydev codecademydev deleted the kl-gmt-136-card-shadow-fix branch January 5, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants