Skip to content
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

vpat: no focus shift if expanded via keypress #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abaevbog
Copy link
Contributor

Do not shift focus onto the collection row if the target selector was opened via keypress and not via mouse click. This was not explicitly reported during VPAT review but vpat 44 (addressed in zotero/zotero#4069) raises a similar issue where focus should not move on button click per https://www.w3.org/WAI/WCAG21/Understanding/on-input

With voiceover enabled, if you focus the button and press space to click it, focus will jump to the collection tree, which is not quite expected and can be disorientating. Just like in that PR, I think a decent compromise is to keep focus on the twisty if keypress happened via keyboard but let focus jump to collection row after mouse click.

We could wait for the fix from zotero/zotero#4069 to be merged and approved by the VPAT reviewers before doing this.

Do not shift focus onto the collection row if the target selector
was opened via keypress and not via mouse click. This was not
explicitly reported during VPAT review but vpat 44 raises a similar
issue where a focus should not move on button
click https://www.w3.org/WAI/WCAG21/Understanding/on-input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant