d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Animated connections don't honor prefers-reduced-motion

Open sznowicki opened this issue 8 months ago • 0 comments

Hello there

Coming here because some people at my organisation complained about other people making animated connections in their diagrams which makes that first group kinda dizzy.

I checked the styles that are generated by d2 and it seems you're adding a css animation properties for path element.

I'd strongly suggest enhancing it with some sort of CSS property that reacts on prefers-reduced-motion query so it's NOT animating at all when it's set to reduced.

I believe this small change would increase accessibility of this wonderful tool.

sznowicki avatar Jun 18 '24 09:06 sznowicki