-
Notifications
You must be signed in to change notification settings - Fork 206
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
[Bug][a11y]: Screen reader users perceive no distinction between horizontal and vertical orientation #3263
Comments
To address this issue, one should follow these steps:
|
@TarunAdobe Please link your PR here before moving this to Peer review. Thanks |
PR: #3410 |
@dineshy87 can you help me to understand your suggestions here:
This info will empower a choose your own adventure path to correcting this issue: If we can use In the case that we need to change the Tabs interaction, we can likely leverage the In the case that |
aria-orientation is very much applicable as per spec, but not consistently dependable across different screen readers. Which is why having both ways of navigating will be helpful. We are giving the same recommendation for react-spectrum as well. |
Good to know. Does that means in all contexts where we move to group navigation via arrow keys we'd need to surface support for left/right AND up/down, or is this lack of dependability specific to tab list? Related, is there any central documentation to this point that we could point to in some code comments so that if we can save our future selves some time when the code changes needed here are revisited in the future. |
I am making the recommendation from some testing across screen readers. For other contexts, the question is again whether the spec itself supports aria-orientation or not, and if screen readers and browsers actually convey the orientation or not when it is vertical. I see no problems with supporting both ways. @majornista what do you think? |
I'd say it depends on the
The WAI-ARIA Authoring Practices Guide provides guidance for keyboard behavior based on For example for tablist, https://www.w3.org/WAI/ARIA/apg/patterns/tabs/#keyboardinteraction, the keyboard interaction guidance states:
And in the note it says:
|
@majornista the APG notes seem to align to what we have currently, but do not align with the x-context issues that @dineshy87 has outlined. The current suggestion in this issue seems to be that Tabs should include Do we only change Tabs and leave other patterns to be reviewed/changed later, or does the lack of full screen reader support point to ALL orientation based keyboard interactions allowing both up/down AND left/right at all times? |
@Westbrook I think both Down/RightArrow and Up/LeftArrow would be preferable for a tablist with |
Code of conduct
Impacted component(s)
Tabs
Expected behavior
Since we can't rely on screen readers announcing the tablist orientation to determine whether to use ArrowUp/ArrowDown instead of ArrowLeft/ArrowRight. Both ArrowUp and ArrowLeft should work to navigate to the previous tab, and both ArrowDown and ArrowRight should work to navigate to the next tab.
Actual behavior
With focus on a Tab, a screen reader user would have to guess the orientation to figure out which arrow keys will work to navigate to the next or previous Tab.
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
No response
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
The text was updated successfully, but these errors were encountered: