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

adds prefers-reduced-motion to scroll behaviour #73

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mediaformat
Copy link

@mediaformat mediaformat commented Sep 26, 2023

Closes

What type of PR is this? (put an x to all applicable)

  • ๐Ÿ• Feature
  • ๐Ÿ› Bug Fix
  • ๐Ÿ“ Documentation Update
  • ๐ŸŽจ Style
  • ๐Ÿง‘โ€๐Ÿ’ป Code Refactor
  • ๐Ÿ”ฅ Performance Improvements
  • โœ… Test
  • ๐Ÿค– Build
  • ๐Ÿ” CI
  • ๐Ÿ“ฆ Chore (Release)
  • โฉ Revert

Link to test

Description

This PR adds media query detection of user preferences relating to motion, and applies scroll-behavior: auto;.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Screen.Recording.2023-09-26.at.5.05.50.PM.mov

Caption: Video starts with reduced motion pref true, I turn it off and it restores smooth-scroll behaviour.

Added tests?

  • ๐Ÿ‘ yes
  • ๐Ÿ™… no, because they aren't needed
  • ๐Ÿ™‹ no, because I need help

Added to documentation?

  • ๐Ÿ“œ README.md
  • ๐Ÿ““ Confluence
  • ๐Ÿ™… no documentation needed

Others

  • ๐Ÿฆฎ Is this issue accessible? (Section 508/WCAG 2.0AA)
  • ๐Ÿ™Œ Does this issue pass all the linting? (PHPCS, ESLint, SassLint)

@mediaformat
Copy link
Author

@khleomix if you want to test this you can refer to an implementation an Paramount

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