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

Master spinner does not respect prefers-reduced-motion #399

Open
gertsonderby opened this issue Feb 8, 2022 · 0 comments
Open

Master spinner does not respect prefers-reduced-motion #399

gertsonderby opened this issue Feb 8, 2022 · 0 comments

Comments

@gertsonderby
Copy link

  • pure-react-carousel version: 1.28.0
  • react version: 17.0.2
  • browser used: Firefox 96.0
  • node version: v16.13.0

Relevant code or config:

<StyledCarouselProvider
    [...]
    hasMasterSpinner={false}
    [...]
        >

What you did:

Set hasMasterSpinner prop on provider component to true, load the page with long-loading or erroring slides, or JS switched off. Spinner shows on page and stays there for a significant amount of time.

What happened:

With browser set to prefer reduced motion, master spinner animation continues to rotate forever.

Problem description:

Animations should be possible to reduce or stop based on user configuration to be accessible. See https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-pause.html for more information.

Suggested solution:

Add a prefers-reduced-motion media query which limits the animation suitably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants