Problems with blocks when prefers-reduced-motion is true
-
Hi! I’m having an issue with the accordion block not behaving quite right when the browser is told to prefer reduced motion. The accordion doesn’t close other opened sections when you click on a new one, it doesn’t re-collapse an item when you click on an expanded item’s header, and sometimes doesn’t size itself correctly when opening an item. I’ve been able to trace this back to the
_isTransitioning
value not being reset to 0 because the_endTransition()
function is never called when reduced motion is enabled, but that’s as far as I’ve gotten. I’ve been able to replicate this in the latest versions of both Firefox and Chrome, with WordPress 6.1.1 and the latest CBB plugin installed.The page I need help with: [log in to see the link]
- The topic ‘Problems with blocks when prefers-reduced-motion is true’ is closed to new replies.