reactstrap/reactstrap

Tabs accessibility

Aberta

#1.446 aberto em 26 de mar. de 2019

 (3 comentários) (0 reação) (0 responsável)JavaScript (1.347 forks)batch import
BS compatibilityPR Welcomea11ygood first issue

Métricas do repositório

Stars
 (10.557 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

  • components: TabContent, TabPane, Nav
  • reactstrap version 7.1.0
  • react version ^16
  • bootstrap version ^4

What is happening?

Tab panels created using existing components doesn't follow w3c recommendations.

What should be happening?

It should follow https://www.w3.org/TR/wai-aria-practices/#tabpanel To summarize:

  • The nav buttons and tab panels should have tab related roles, e.g. tablist, tab, tabpanel, and have aria attributes to indicate relationships.
  • The tab buttons should support special keyboard interactions, similar to what Dropdown currently has.

Steps to reproduce issue

  1. goto https://reactstrap.github.io/components/tabs/
  2. compare to example in https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html

Guia do colaborador