-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab key navigation does not work when interactive elements are contained within a grid container #12044
Comments
cc: @MarcoZehe do you have any suggestions here? |
I am currently out sick, so passing on to @jcsteh. Also, might be worth checking with a newer release than 84, too. |
This happens because Firefox exposes the focusable state on grids, even when the grid isn't focusable. NVDA uses this state to work out where tab should go in this case and then sets focus to it, but setting focus does nothing (since it isn't really focusable). I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1692933. |
@patrickfox, as a matter of interest, how are you managing focus in the grid? (ARIA requires grids to manage focus.) I assume you're setting tabindex on the gridcells? |
We are not using tabindex at all, relying instead on screen reader grid/table navigation.
…Sent from my iPhone
On Feb 15, 2021, at 7:35 PM, James Teh ***@***.***> wrote:
@patrickfox, as a matter of interest, how are you managing focus in the grid? (ARIA requires grids to manage focus.) I assume you're setting tabindex on the gridcells?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please note that this is an ARIA spec violation. When you use role="grid", you are required to manage focus, which is why Firefox exposes the focusable state (controversial as that may be). If you expect a screen reader user will instead use screen reader table navigation, you should instead use role="table", in which case you will not experience this problem. |
I am closing as invalid as per Jamie's comment above. If you still have arguments why aria spec should not be applied here, please comment and we can resume the discussion. |
Note that the Firefox bug is still open, so you might continue the discussion there for that particular use case. |
Steps to reproduce:
Create a page with the following structure:
Steps:
Note: I realize that having a random
<div role="grid">
isn't proper use of that role, but this behavior also occurs in other pages with a full, valid ARIA grid layout.Actual behavior:
Pressing Tab does nothing
Expected behavior:
Pressing Tab should navigate to the first link in the page.
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
2020.3
Windows version:
WIndows 10
Name and version of other software in use when reproducing the issue:
Firefox 84
Other information about your system:
n/a
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
Yes, but only 2018.1.1
If addons are disabled, is your problem still occuring?
Yes - I have no addons
Did you try to run the COM registry fixing tool in NVDA menu / tools?
Yes, no change
The text was updated successfully, but these errors were encountered: