Skip to content

Add keyboard arrow-key navigation to Carousel #17

@barney-w

Description

@barney-w

The Carousel has solid ARIA roles (region, roledescription, slide labels, tab dots) but no keyboard navigation — you can't use arrow keys to move between slides.

What needs doing:

  • Make the carousel container focusable (tabIndex={0})
  • Add an onKeyDown handler for ArrowLeft / ArrowRight to go prev/next
  • Announce slide changes to screen readers (e.g. aria-live region)
  • Bonus: pause autoplay on focus (currently only pauses on hover)

Where to look:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions