Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: improve virtual-list a11y #8328

Merged
merged 1 commit into from
Dec 12, 2024
Merged

feat: improve virtual-list a11y #8328

merged 1 commit into from
Dec 12, 2024

Conversation

tomivirkki
Copy link
Member

Description

Extracted from #8318
Part of vaadin/platform#6838

Address the following a11y-related topics from the AC:

  • When selection is disabled, VirtualList has ARIA role="list" and item wrappers have role="listitem"
  • VirtualList needs an aria-label(ledby) API in order to provide an accessible name
    • Added as itemAccessibleNameGenerator

This PR also adds aria-setsize and aria-posinset attributes to the elements.

Type of change

Feature

@tomivirkki tomivirkki requested a review from vursen December 11, 2024 14:58
@tomivirkki tomivirkki merged commit 4c0d03b into main Dec 12, 2024
9 checks passed
@tomivirkki tomivirkki deleted the feat/virtual-list-a11y branch December 12, 2024 06:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants