You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although my PR #17254 fixes the issue that in the Talkback screen reader you couldn't select anything from the suggestions, it also introduced a minor annoyance in the tab sequence:
if suggestions are shown and you hit the tab key in the input field to leave the field, it doesn't go immediately to the next field in the tab sequence. It tries to go to the suggestion first. You have to enter the tab key another time to get in the next field.
Luckily there is an easy fix.
Instead of having tabindex 0 on the list items, it is enough to set tabindex -1 to make the list items focusable elements.
I tested this in the Talkback screen reader, and this works just as good and this doesn't disturb the tab sequence.
I will submit a PR for this.
I was thinking about adding a test, but as far as I know, it is not possible to test the tab sequence with Jasmine tests.
In the PR I will also make aria-activedescendant empty when no suggestion is selected. Currently aria-activedescendant keeps pointing to a list item even though the popup with items are hidden. This doesn't seem to cause any issues, but it is cleaner to make aria-activedescendant empty.
The text was updated successfully, but these errors were encountered:
* fixes issus #17252. a11y improvements. fix Talkback item selection. i18n for the status text.
* fixes issues of #17252. a11y improvements. fix Talkback item selection. i18n for the status text.
* Make aria-activedescendant empty when none is selected. see w3c/aria#501 (comment)
* Make aria-activedescendant empty when none is selected. see w3c/aria#501 (comment)
* Transformation must end with visibility hidden. Fixes tab navigation to hidden li item
* Also in css leading tab characters. After css transition everything in the suggestion list must be hidden and for example links in suggestions should not be in the tab sequence anymore
* Fixes issue of #17255. Tab navigation when suggestions are shown is wrong
---------
Co-authored-by: Nico <[email protected]@users.noreply.github.com>
Although my PR #17254 fixes the issue that in the Talkback screen reader you couldn't select anything from the suggestions, it also introduced a minor annoyance in the tab sequence:
Luckily there is an easy fix.
Instead of having tabindex 0 on the list items, it is enough to set tabindex -1 to make the list items focusable elements.
I tested this in the Talkback screen reader, and this works just as good and this doesn't disturb the tab sequence.
I will submit a PR for this.
I was thinking about adding a test, but as far as I know, it is not possible to test the tab sequence with Jasmine tests.
In the PR I will also make aria-activedescendant empty when no suggestion is selected. Currently aria-activedescendant keeps pointing to a list item even though the popup with items are hidden. This doesn't seem to cause any issues, but it is cleaner to make aria-activedescendant empty.
The text was updated successfully, but these errors were encountered: