Page MenuHomePhabricator

Tabs: Improve keyboard navigation and focus handling
Closed, ResolvedPublic5 Estimated Story Points

Description

From T337967#8983016:

After studying the W3C guidelines for how to represent the Tabs UI pattern in an accessible way, I think that we have a basic outline of a solution:

  • Tab items in the list should be <button> elements, not links – this is true for both the CSS-only and the JS-enabled versions of the component
  • Our current focus handling code will likely need to change, but we can visually keep things looking the same with minor style changes.

An initial patch demonstrating this approach is available here: https://gerrit.wikimedia.org/r/934626, and you can see a live demo here: https://934626--wikimedia-codex.netlify.app/components/demos/tabs.html#demos

Event Timeline

CCiufo-WMF triaged this task as Medium priority.Jul 24 2023, 4:26 PM
CCiufo-WMF added a subscriber: egardner.
egardner raised the priority of this task from Medium to High.Jul 24 2023, 5:15 PM
egardner set the point value for this task to 2.Jul 24 2023, 5:24 PM

Change 941530 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[design/codex@main] Tabs: Align markup closer to APG example

https://gerrit.wikimedia.org/r/941530

egardner changed the point value for this task from 2 to 5.Jul 27 2023, 3:25 PM

Change 941530 merged by jenkins-bot:

[design/codex@main] Tabs: Align markup closer to APG example

https://gerrit.wikimedia.org/r/941530

Change 944353 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update Codex from v0.15.0 to v0.16.1

https://gerrit.wikimedia.org/r/944353

Change 944353 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.15.0 to v0.16.1

https://gerrit.wikimedia.org/r/944353