Skip to content

Tabs are not accessible with Keyboard #94

Open
@duranmla

Description

@duranmla
  • @freenow/wave version: 1.0.7

Relevant code

<TabBar>
  <TabBar.Link
    onClick={() => setCurrentTab(tabs.get("online"))}
    selected={currentTab === tabs.get("online")}
  >
    Online (10)
  </TabBar.Link>
  <TabBar.Link
    onClick={() => setCurrentTab(tabs.get("offline"))}
    selected={currentTab === tabs.get("offline")}
  >
    Offline (20)
  </TabBar.Link>
</TabBar>

What you did

Testing the keyboard a11y of my application I realize I can't focus on tabs

Reproduction

https://www.loom.com/share/b10da983dcfe423aa8a822e436827dc2
https://codesandbox.io/s/wave-playground-tabs-p8m72

Problem description

Tabs are interactive elements thus they should be reachable using the keyboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yAccessibility related issues and bugs ♿️bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions