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

Carousel - autoplay a11y requirements #2212

Open
Powerplex opened this issue Jan 30, 2025 · 0 comments
Open

Carousel - autoplay a11y requirements #2212

Powerplex opened this issue Jan 30, 2025 · 0 comments

Comments

@Powerplex
Copy link

🚀 Feature request

Carousel in autoplay in itself is not the most accessible component, but there are guidelines/recommendations about how to keep it accessible, from w3.org

If the carousel can automatically rotate, it also:

  • Has a button for stopping and restarting rotation. This is particularly important for supporting assistive technologies operating in a mode that does not move either keyboard focus or the mouse.
  • Stops rotating when keyboard focus enters the carousel. It does not restart unless the user explicitly requests it to do so.
  • Stops rotating whenever the mouse is hovering over the carousel.

I personally will disable autoplay entirely because I don't like autoplay on anything period, but I was thinking it could be interesting to consider this :)

🧱 Problem Statement / Justification

a11y compliance: https://www.w3.org/WAI/WCAG22/quickref/?versions=2.1#qr-time-limits-pause

✅ Proposed solution or API

1 - First PR could stop the autoplay on hover + keyboard focus

2 - second PR to consider the stop/play button in the anatomy (could be a separate issue)

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

No branches or pull requests

1 participant