codehike icon indicating copy to clipboard operation
codehike copied to clipboard

Comply with prefers-reduced-motion

Open pomber opened this issue 4 years ago • 2 comments

pomber avatar Dec 03 '20 16:12 pomber

I was glad to find this issue because it's something I've been thinking about as well

maybe a <CH.ReducedMotion fallback={<Element>}> that displays instead of children if wrapped around some other <CH> blocks?

I wonder how i could pass an <Element> as a fenced code block though..

DanielFGray avatar Jun 12 '22 18:06 DanielFGray

My idea is to provide a "reader mode" static version for most components, then display that version for print, small screens and reduced motion media queries.

pomber avatar Jun 21 '22 13:06 pomber