Repository navigation
frontend(fix): keep design-page hover nudges still under reduced motion - #580
Conversation
Wraps the /docs/design glyph hover transitions and transforms in prefers-reduced-motion: no-preference. It also prefixes the hover-arrow utilities on the decision receipts, the case-study "Browse the catalog" and "Read the design philosophy" links, and the /about case-study link with motion-safe:. Before this, the global guard only zeroed the transition, so reduced-motion visitors still saw each part jump. Verified in Chromium. With motion allowed, glyphs translate (-3, -3), receipt arrows translate 1px -1px, and the case-study arrow translates 8px. Under reduced motion all three stay at none. Addresses CodeRabbit review on #573. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Ducksss/payload-components/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughHover transitions and translations on arrows and documentation glyphs now depend on motion preference. They do not apply for visitors who prefer reduced motion. ChangesMotion preference handling
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The requested reduced-motion changes are in place for the effects in this PR’s scope; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This follow-up to #573 addresses its last CodeRabbit thread: decorative hover nudges now respect
prefers-reduced-motion./docs/designprinciple glyphs: the hover transitions and transforms (key, lift, caret, stamp) now sit inside@media (prefers-reduced-motion: no-preference)indocs.css.motion-safe:for both the transition and the translate utilities:/aboutlink to the case studyBefore, the global reduced-motion guard only shortened the transition, so reduced-motion visitors still saw each part jump on hover. Now it stays put.
Verification
pnpm test:release, not run in full locally; CI runs the gate. Run locally:pnpm exec tsc --noEmitpass.tests/int/fumadocs-site.int.spec.tspasses 39/39.(-3, -3), the receipt arrow by1px -1px, and the case-study arrow by8px. WithreducedMotion: 'reduce', all three computed transforms arenone.Registry Checklist
public/routput out of git. (No registry changes.)Notes
src/app/[locale]/docs/docs.css).🤖 Generated with Claude Code
Summary by CodeRabbit