Skip to content

[Tabs] Missing ARIA attributes #51

Description

@olegpolyakov

Component

Tabs

Problem

Missing proper ARIA attributes for tab pattern.

Suggested Fix

Tab:

<button
    role="tab"
    aria-selected={isSelected}
    aria-controls={panelId}
    tabIndex={isSelected ? 0 : -1}
>

TabPanel:

<div
    role="tabpanel"
    id={panelId}
    aria-labelledby={tabId}
    tabIndex={0}
>

Impact

Screen readers cannot navigate tabs properly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions