Apply smooth-scroll when prefers-reduced-motion: no-preference#31877
Apply smooth-scroll when prefers-reduced-motion: no-preference#31877
prefers-reduced-motion: no-preference#31877Conversation
|
i'd be in favour of this |
|
We'll want to mention this in the Migration guide, and perhaps add something else in our docs about this. |
6af6aff to
9c2fdbd
Compare
|
Added a mention in our accessibility page, and introduced a reboot section in the migration guide for alpha3. |
|
On single-page applications, the effect is really jarring when using client-side navigation, which scrolls to the top of a page after a page load. Is there a way to disable this effect? Using didn't seem to work. |
|
@andrehsu Please open an issue instead of reviving a closed pull request. |
@andrehsu indeed it is and it should not be the default. When using The solution or workaround I've found is to explicitly set this to Also, I'm not going to create a new issue for this because reviving an old one is how those come across this defect will be able to better find context regarding the bug, it is also linked in documentation. |
After watching @mmatuzo's talk "Writing even more CSS with accessibility in mind", I wanted to suggest optionnal smooth scroll.
I saw #24889 but it's kinda outdated, and with the support of
prefers-reduced-motionit's more robust now.Very simple and lightweight PR so feel free to discard it if you think it's still not valuable.