Open tomivirkki opened 2 years ago
We need to figure out if it is a problem in avatar-group
and menu-bar
.
Tested this for other components:
The role is announced as "group". Also, the VoiceOver cursor does not move to item:
The role is announced as "text element" (this is expected, as VoiceOver does not annonce role="option"
, unlike native <option>
element). The VoiceOver cursor is moved to the item in the list-box:
Same as in vaadin-avatar-group
: the VoiceOver cursor remains on the vaadin-select-value-button
:
Same as in vaadin-avatar-group
: the VoiceOver cursor is moved to the item in the list-box:
This component is not affected, most likely because it's using role="menuitem"
which has different item navigation.
Also, the VoiceOver cursor is correctly moved to the item in the overlay when using VoiceOver on Chrome.
One more issue about item navigation in Safari: when moving to different item using Control + Shift + Arrow Down and pressing Enter, the wrong item is selected, as the keyboard focus is not in sync with the VoiceOver cursor 😕
UPD: this problem also exists in the ARIA examples when using VoiceOver on Chrome 🤷♂️
Regarding the original issue, I could not get VoiceOver outline working on Chrome. Here are some things that I tried:
this._menuElement.focus()
until vaadin-overlay-open
event is fired,vaadin-select-overlay
(the way it's done in our visual tests),aria-controls
attribute on the vaadin-select-value-button
to link it to list-box.Regardless of those steps, the behavior of the VoiceOver cursor doesn't change:
vaadin-select-value-button
Looks like something is wrong with either vaadin-list-box
or vaadin-item
. Using div
with correct roles works.
Also, using custom elements that set correct roles (without using tabindex) works fine, too:
What is the problem?
With VoiceOver on
<vaadin-select>
dropdownHowever, Control-Option-Shift-Down Arrow does nothing
May be that the dropdown/list-box roles aren't correct so a wrong kind of an announcement is shown
Browsers
Screen Readers