facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
55.38k stars 8.31k forks source link

Keyboard focus resets on invoking 'using the components' link to first interactive element of the page. #9163

Open msftedad opened 1 year ago

msftedad commented 1 year ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

Keyboard focus resets on invoking 'using the components' link to first interactive element of the page.

On invoking 'using the components' link Keyboard focus resets to first interactive element of the page.

Keyboard focus resets on invoking 'using the components' link to first interactive element of the page.

User with motor impairment who rely on keyboard technology will face difficulties if keyboard focus resets on invoking navigation link 'Using the components' link

Focus resets .webm

Reproducible demo

No response

Steps to reproduce

Repro Steps:

  1. Open https://www.fast.design/ URL.
  2. Navigate to link ‘Documentation’ and invoke it.
  3. Navigate to navigation link 'using the components' and invoke it.
  4. Observe the keyboard focus.

Expected behavior

Keyboard focus should not reset to first interactive element of the page on invoking 'Using the components' link, instead focus should land to main landmark first interactive element i.e., 'Quick Start'.

Actual behavior

Keyboard focus resets on invoking 'using the components' link to first interactive element of the page.

Your environment

Self-service

kemilbeltre commented 1 year ago

I'm not a11y expert, but I think this is the "natural" behavior of websites. If you open a new page, the keyboard focus is automatically reset because you will probably have a different layout.

msftedad commented 1 year ago

Hi @kemilbeltre, we have discussed with PO team and we got a reply that

We have agreed to the comment, but focus can only be reset when if the invoked element is opened new tab. But here it is opening in the same page not in new page (Tab). So, focus should not get reset if the invoked element is opened in the same page.

Can you please look into this comment and let us know if you need more information. Thanks.

msftedad commented 8 months ago

Hi @kemilbeltre, Any update on this issue?