Fix GDPR banner CSS breaking third-party lightboxes (#167)#168
Fix GDPR banner CSS breaking third-party lightboxes (#167)#168parhumm merged 1 commit intodevelopmentfrom
Conversation
The global `*` selector in @media (prefers-reduced-motion: reduce) was killing ALL CSS transitions/animations on the page with !important, breaking third-party plugins like FancyBox V2 / Firelight Lightbox. Now scoped to #slimstat-gdpr-banner, .slimstat-gdpr-management, and .slimstat-consent-status only.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA CSS bug fix that restricts reduced-motion CSS rules from a global Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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
@media (prefers-reduced-motion: reduce)CSS rule from global*selector to SlimStat elements only (#slimstat-gdpr-banner,.slimstat-gdpr-management,.slimstat-consent-status)*selector with!importantwas killing all CSS transitions/animations site-wide, breaking third-party plugins like FancyBox V2 / Firelight Lightbox when the user's OS has reduced-motion accessibility enabledTest plan
Fixes #167
🤖 Generated with Claude Code
Summary by CodeRabbit