Skip to content

Add skeleton shimmer prefers-reduced-motion fallback#148

Merged
Chucks1093 merged 9 commits into
accesslayerorg:mainfrom
Johnpii1:main
Apr 25, 2026
Merged

Add skeleton shimmer prefers-reduced-motion fallback#148
Chucks1093 merged 9 commits into
accesslayerorg:mainfrom
Johnpii1:main

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

Summary

Description
Replaced framer-motion opacity pulse blocks in src/components/common/CreatorSkeleton.tsx with a CSS-driven skeleton-shimmer utility class and a single skeletonBlockClass applied to each placeholder element.
Added .skeleton-shimmer animation and a @media (prefers-reduced-motion: reduce) override in src/index.css that disables animation and switches to a static gradient, and added @Keyframes skeleton-shimmer.
Added unit tests in src/components/common/tests/CreatorSkeleton.test.tsx asserting that a card renders 6 shimmer blocks and that CreatorGridSkeleton with count={3} renders 18 shimmer blocks.
Applied code formatting and lint fixes to the modified files.

Testing

Ran lint: pnpm eslint src/components/common/CreatorSkeleton.tsx src/components/common/tests/CreatorSkeleton.test.tsx which succeeded.
Ran formatting check: pnpm prettier --check src/components/common/CreatorSkeleton.tsx src/index.css src/components/common/tests/CreatorSkeleton.test.tsx which succeeded.
Ran tests: pnpm test src/components/common/tests/CreatorSkeleton.test.tsx which passed (1 test file, 2 tests passed).

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

close #125

@drips-wave

drips-wave Bot commented Apr 25, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit 1073960 into accesslayerorg:main Apr 25, 2026
0 of 2 checks passed
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.

Add skeleton shimmer prefers-reduced-motion fallback

2 participants