splide icon indicating copy to clipboard operation
splide copied to clipboard

Inactive pagination items are not accessible via TAB key

Open dtelijis opened this issue 1 year ago • 1 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

v4.1.3

Description

Contrary to the standard a11y rules and guidelines, The active pagination item is focusable, while the other pagination items are non-focusable (tabindex="-1').

The idea is, that if a pagination item is accessible via a mouseclick, then it should also be accessible via TAB press.

Reproduction Link

No response

Steps to Reproduce

  1. Hit TAB as much as needed, until reaching the pagination area.

Expected Behaviour

Every pagination item which is not active (i.e. , which corresponds to a slide which is not visible at the moment), should be focusable, and not have a tabindex="-1" value.

The active pagination item SHOULD be non-focusable (i.e., have a tabindex="-1" value), although not mandatory.

dtelijis avatar Mar 28 '24 15:03 dtelijis

This is incorrect. There should only be one focusable element inside of a tablist, all the rest should be not be focusable. left/right changes which tab is focusable, but only one at any one time should be focusable with the tab key.

see examples - https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/

wplit avatar Jul 02 '24 09:07 wplit