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
vaadin-virtual-list doesn't provide any default semantics, nor an API for providing custom semantics, e.g. in the form of ARIA roles.
As the component is essentially a list, the root element should probably have either role="list" or role="listbox", depending on whether items can be selected, and the items (currently plain <div>s) should have role="listitem" or "role="option" depending on the root element's role. In the case of selectable items, there should also be a way to mark the selected item with aria-selected.
As this is a highly generic component, equally valid for selectable and non-selectable items, both semantics should probably be possible, so an API for setting selectability may be required.
Browsers
Chrome
Firefox
Safari
Safari on iOS
Edge
Screen Readers
None
NVDA
JAWS
VoiceOver on MacOS
VoiceOver on iOS
The text was updated successfully, but these errors were encountered:
What is the problem?
vaadin-virtual-list
doesn't provide any default semantics, nor an API for providing custom semantics, e.g. in the form of ARIA roles.As the component is essentially a list, the root element should probably have either
role="list"
orrole="listbox"
, depending on whether items can be selected, and the items (currently plain<div>
s) should haverole="listitem"
or"role="option"
depending on the root element's role. In the case of selectable items, there should also be a way to mark the selected item witharia-selected
.As this is a highly generic component, equally valid for selectable and non-selectable items, both semantics should probably be possible, so an API for setting selectability may be required.
Browsers
Screen Readers
The text was updated successfully, but these errors were encountered: