Skip to content

Retrofit full WAI-ARIA keyboard support into the Tabs component #24

Closed

Description

@chonilius

Problem

src/components/ui/Tabs.tsx is a custom tab component (no headless-UI/Radix dependency in package.json), presumably used in dashboard shells and possibly the bounty detail page. Hand-rolled tab components are one of the most commonly broken ARIA patterns: correct behavior requires role="tablist"/role="tab"/role="tabpanel", aria-selected, aria-controls/id pairing, roving tabindex (only the active tab is in the normal tab order; arrow keys move focus between tabs), and Home/End key support — and it's common for hand-rolled versions to implement only the visual click-to-switch behavior while silently failing every keyboard/screen-reader requirement, meaning keyboard-only and screen-reader users cannot use tabbed content at all, potentially locking them out of entire sections of a dashboard.

Why this is hard

  • Requires reading the actual current implementation of Tabs.tsx to establish which parts of the WAI-ARIA Tabs pattern are already present versus entirely missing — this is a from-scratch accessibility audit against a real spec, not a guess.
  • The roving-tabindex pattern is easy to implement subtly wrong (e.g. every tab keeps tabIndex={0} so Tab key stops at every tab individually instead of once at the tablist, or focus management breaks when tabs are conditionally rendered/reordered) and needs actual keyboard testing to verify, not just code inspection.
  • Must preserve whatever visual/animation behavior currently exists (active-tab indicator, transitions) while retrofitting the semantic/keyboard layer — this is an additive, non-breaking-to-visuals change.
  • If Tabs.tsx is used in more than one place with different content shapes (dashboard sections vs. bounty detail sub-views, if applicable), the fix needs to generalize correctly across all call sites, not just the first one found.

Scope

  • Audit Tabs.tsx against the WAI-ARIA Authoring Practices Tabs pattern and identify every gap.
  • Implement full keyboard support: arrow-key navigation between tabs, Home/End, roving tabindex, correct aria-selected/aria-controls/id wiring.
  • Verify all current call sites of Tabs.tsx still render and behave visually identically.
  • Add a screen-reader pass (VoiceOver or NVDA) confirming tab switching and content association are announced correctly.

Acceptance criteria

  • Full keyboard operability of Tabs.tsx verified manually: Tab key enters/exits the tablist once, arrow keys move between tabs, activation follows either the "automatic" or "manual" pattern intentionally chosen and documented, Home/End jump to first/last tab.
  • A screen reader correctly announces tab count, selected state, and label for each tab.

Activity

  1. added
    very hard
    accessibility
    help wanted
    on Jul 15, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 15, 2026
  3. added
    Stellar Wave
    on Aug 25, 2026
  4. Halo-chains commented on Aug 25, 2026

    @Halo-chains

    @Halo-chains has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello Maintainer, I’ve reviewed the issue in detail and have a clear understanding of what needs to be implemented. I believe I can deliver a well-structured solution that meets the acceptance criteria. Please consider assigning it to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Halo-chains to this issue.

  5. oldtaker24 commented on Aug 25, 2026

    @oldtaker24
    Contributor

    @oldtaker24 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    i will like to work on this issues

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @oldtaker24 to this issue.

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @oldtaker24! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @oldtaker24: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @oldtaker24 as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @oldtaker24: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSMaybe RewardedOfficial Campaign | FWC26Stellar Waveaccessibilityhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions