Skip to content

fix(a11y): only set aria-controls on the active tab - #752

Closed
yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/tabs-aria-controls-710
Closed

yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/tabs-aria-controls-710

Conversation

@yggdrasilworld

@yggdrasilworld yggdrasilworld commented Oct 14, 2026 •

Copy link
Copy Markdown

What

Every tab set aria-controls=tabpanel-{key}, but only the active panel renders — inactive tabs pointed at missing tabpanel ids (an ARIA reference error axe flags).

Fix

aria-controls only on the active tab.

Resolves #710

Payment: Base USDC 0xD40Df5c27cEa7dd78A3c345401995c319589334e

Only the active tab's panel renders, so inactive tabs' aria-controls
pointed at tabpanel ids not in the DOM — an ARIA reference error. Omit
aria-controls on inactive tabs.

Resolves MergeFi#710
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@yggdrasilworld

Copy link
Copy Markdown
Author

Rebased onto current main — the equivalent change has already landed upstream (post-rebase diff vs main is empty), so this PR is superseded. Closing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tabs reference an inactive tab's tabpanel id that doesn't exist in the DOM

1 participant