webcompat.com
webcompat.com copied to clipboard
[A11Y] Multiple "Tab" keys needed to navigate to "Next" button from “What is a web compatibility issue” popup
Browser / Version: Firefox Nightly 81.0a1 (2020-07-27) Operating System: Windows 10 Pro
Steps to Reproduce:
- Navigate to https://webcompat.com/issues/new
- Using "Tab" key, navigate to the URL field and fill it in.
- Using "Tab" key, navigate to "Confirm" button.
- Using "Tab" key, navigate to "Learn more about web compatibility" link.
- Using "Enter" key, activate the popup.
- Using "Tab" key, try to navigate to "Next" button.
- Observe behavior.
Expected Behavior: "Next" button becomes active after a few "Tab" keys (after "X" and navigation dots are passed).
Actual Behavior: Multiple "Tab" keys are needed to navigate to "Next" button.
Notes:
- Screenshot attached.

- The same behavior is encountered for "Home" button (after navigating from "Report anonymously").

Watchers: @softvision-oana-arbuzov @cipriansv
To properly handle this, we'll need to implement some kind of "focus trap":
https://developers.google.com/web/fundamentals/accessibility/focus/using-tabindex https://medium.com/@islam.sayed8/trap-focus-inside-a-modal-aa5230326c1b