Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: Scroll instantly when the user prefers reduced motion #1921

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

LeopoldTal
Copy link

@LeopoldTal LeopoldTal commented Nov 3, 2022

Summary

The prefers-reduced-motion media query allows users to specify an accessibility setting for less animation.

Smooth scrolling can trigger seasickness for some users, so if the user has set this preference, scroll instantly.

No behaviour change when this preference is not set.

What kind of change does this PR introduce?

Feature

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Couldn't find any applicable doc or tests, let me know if I missed any.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

@vercel
Copy link

vercel bot commented Nov 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
docsify-preview ✅ Ready (Inspect) Visit Preview Dec 12, 2022 at 10:57AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 3, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ca2b750:

Sandbox Source
docsify-template Configuration

@LeopoldTal LeopoldTal changed the title fix: Scroll instantly when the user prefers reduced motion feat: Scroll instantly when the user prefers reduced motion Nov 3, 2022
@LeopoldTal LeopoldTal changed the title feat: Scroll instantly when the user prefers reduced motion enhancement: Scroll instantly when the user prefers reduced motion Nov 3, 2022
@Koooooo-7 Koooooo-7 requested a review from a team November 4, 2022 10:58
Smooth scrolling can trigger seasickness for some users. The [`prefers-reduced-motion` media query](https://css-tricks.com/introduction-reduced-motion-media-query/) allows these users to specify an accessibility setting for less animation, e.g. instant scrolling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant