Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR adds accessibility support for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 PR updates the Apsara component library so key animated components respect the
prefers-reduced-motion: reducemedia query. When reduced motion is enabled, we disable/simplify the primary animation effects (shimmer, open/close transitions, overlay/panel transitions, icon/content transitions, loader/spinner rotations, and similar motion).Video demonstrates the animation changes after enabling "Reduce Motion" in OS settings (Macbook in this case):
Screen.Recording.2026-03-20.at.5.35.08.PM.mov
Note:
We’re avoiding a global reduced-motion rule because it risks affecting the host app’s own animations as well. In frontier, Apsara’s ThemeProvider is mounted near the app root, so a “scoped global” would still have high blast radius. Per-component overrides keep changes limited to Apsara components and are easier to verify
Changes
@media (prefers-reduced-motion: reduce)overrides in the relevant Raystack component CSS modules for:Skeleton,Link,Popover,Tooltip,Collapsible,Accordion,Spinner,Button(loader),PreviewCard,Toast,Sidebar,Tabs,Drawer(Sheet),DialogTesting / Validation
Summary by CodeRabbit
New Features
prefers-reduced-motionaccessibility preference across components including Accordion, AlertDialog, Button, Collapsible, Dialog, Drawer, Link, Popover, Skeleton, Spinner, Toast, and Tooltip. Animations and transitions are now disabled for users who prefer reduced motion.Documentation