Skip to content

fix: mount LeaderboardStyles keyframes on LeaderboardPage (Closes #708) - #949

Open
waterWang wants to merge 1 commit into
Grainlify:mainfrom
waterWang:fix/mount-leaderboard-styles-708
Open

fix: mount LeaderboardStyles keyframes on LeaderboardPage (Closes #708)#949
waterWang wants to merge 1 commit into
Grainlify:mainfrom
waterWang:fix/mount-leaderboard-styles-708

Conversation

@waterWang

Copy link
Copy Markdown
Contributor

Description

LeaderboardStyles.tsx defines @Keyframes for podium/hero animations (glow-pulse, float, twinkle-slow, etc.) but the component was never imported or rendered anywhere, so all animation classes were silently no-ops.

Changes

  1. Import and render <LeaderboardStyles /> in LeaderboardPage.tsx, following the same pattern as BlogPage + BlogStyles
  2. Add regression tests (3 tests) verifying the <style> tag containing @keyframes glow-pulse, @keyframes float, and @keyframes twinkle-slow is rendered

Verification

  • All 3 tests pass: ✓ src/features/leaderboard/components/LeaderboardStyles.test.tsx (3 tests)

Closes #708

…inlify#708)

LeaderboardStyles.tsx defines @Keyframes for podium/hero animations
(glow-pulse, float, twinkle-slow, etc.) but the component was never
imported or rendered anywhere, so all animation classes were silently
no-ops.

- Import and render <LeaderboardStyles /> in LeaderboardPage.tsx
  (following the same pattern as BlogPage + BlogStyles)
- Add regression tests verifying the <style> tag containing
  @Keyframes glow-pulse is rendered
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.

LeaderboardStyles.tsx keyframes are never mounted, silently disabling podium/hero animations

1 participant