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

VirtualList doesn't provide any semantics #7270

Open
10 tasks
rolfsmeds opened this issue Mar 25, 2024 · 0 comments
Open
10 tasks

VirtualList doesn't provide any semantics #7270

rolfsmeds opened this issue Mar 25, 2024 · 0 comments
Labels
a11y Accessibility issue enhancement New feature or request vaadin-virtual-list

Comments

@rolfsmeds
Copy link
Contributor

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" 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
@rolfsmeds rolfsmeds added a11y Accessibility issue vaadin-virtual-list labels Mar 25, 2024
@yuriy-fix yuriy-fix added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issue enhancement New feature or request vaadin-virtual-list
Projects
None yet
Development

No branches or pull requests

2 participants