question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A11y: Tabs select when navigating with VoiceOver

See original GitHub issue

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I’m using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

When using VoiceOver on either iOS or macOS, navigating forward activates the next tab. This makes it difficult to access the actual tab panel content of a given tab.

Reproducible demo

https://docusaurus.io/docs/markdown-features/tabs

Steps to reproduce

For iOS VoiceOver:

  1. Turn on VoiceOver
  2. Open a page with the Tabs component
  3. Swipe right through the content to get to the tabs
  4. Swipe right through the tabs

macOS VoiceOver has the same steps, but replace “Swipe right” with “Press VO (control + option) + right arrow”

Expected behavior

User can navigate through the tabs to read through the tabs to activate or navigate forward to the tab panel content. The tab has to be activated by the user before it switches. This behavior works as expected on the ARIA authoring practices guide example for automatic tabs.

Actual behavior

When navigating with VoiceOver on, the tab switches automatically when reading through the tabs. Navigating with VoiceOver will move focus when it moves to a focusable element. But, because the Tabs code triggers a tab change on tab focus, this results in the tab also activating when reading the new tab.

Example of behavior on the ARIA example site, where I’m navigating around and the tab panel doesn’t change until I select it: Set of 4 tabs and a tab panel with first tab selected. VoiceOver outline on tabs moves to later tabs and a keyboard focus ring also appears around the tab, but the selected tab remains on the first tab. Selecting a tab then changes the tab panel content.

Example of behavior on the Docusaurus site, where navigating around also selects the tab and updates the tab panel: Set of 3 tabs and a tab panel with the first tab selected and VoiceOver outline on the first tab. As VoiceOver outline moves to other tabs, the tab gets selected and the tab panel also changes.

Your environment

Self-service

  • I’d be willing to fix this bug myself.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
noobyogi0010commented, Sep 11, 2022

@Josh-Cena I’ve worked on a similar issue. Let me try resolving it. Thanks

0reactions
slorbercommented, Sep 29, 2022

Good first issue

This issue should be relatively easy to solve so I’m willing to delegate it to an external contributor looking to contribute.

Disclaimer

We, project maintainers, have limited time and need to protect it.

We kindly ask you to invest your time, trying to be autonomous and proactive instead of expecting us to guide you step-by-step.

  • Don’t expect us to teach you the basics of Docusaurus: if you want to contribute, you have to get familiar with the project first, reading the official doc
  • Don’t claim the issue and then ghost us (like it often happens)
  • Please at least submit a PR, and only then we assign the issue to you
  • Don’t ask for advice even before giving it a try and submitting a failing PR
  • Maybe it’s not a good issue for you, and you should simply move on
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 5. Navigating Content - Apple
To navigate to the menu bar: Press VO-M. If you're using VoiceOver gestures, double-tap with two fingers near the top edge of the...
Read more >
Horizontal tabs are not very clear when using voiceover (a11y)
Navigate to the first tab, which is open, voiceover says "link, [tab name] (active tab)", so if the first tab's name is "Basic...
Read more >
VoiceOver navigation doesn't work on tab panels if wrapper ...
Navigate to one of the tab buttons either by using mouse or keyboard navigation. Activate VoiceOver. Use VO + Right Arrow to try...
Read more >
VoiceOver Keyboard Shortcuts on a Mac - Deque University
Navigation ; Tab / Shift + Tab · VO + Command + L · VO + Command + V · VO + Command...
Read more >
VoiceOver basics - IU KB - Indiana University
Before getting started with VoiceOver, full keyboard accessibility needs to be enabled. In the System Preferences, select Keyboard, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found