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

UX-261 Create usePrefersReducedMotion hook #680

Merged
merged 6 commits into from
Nov 6, 2020
Merged

UX-261 Create usePrefersReducedMotion hook #680

merged 6 commits into from
Nov 6, 2020

Conversation

logansparlin
Copy link
Contributor

What Changed

  • Adds usePrefersReducedMotion hook

How To Test or Verify

  • npm run start:storybook
  • Visit [http://localhost:9001/?path=/story/utility-useprefersreducedmotion--example-usage](usePrefersReducedMotion story)
  • Verify that value is either no-preference or reduce based on your settings
  • If on a mac, you can change this setting by changing System Preferences > Accessibility > Display > Reduce motion

PR Checklist

  • Add the correct type label
  • Pull request approval from #uxfe or #design-guild

Copy link
Contributor

@jonambas jonambas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this is awesome that it updates right when you toggle the option

@logansparlin logansparlin merged commit f223220 into main Nov 6, 2020
@jonambas jonambas deleted the UX-261 branch February 18, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants