Skip to content

[list-box] Incorrect item announcements when using mutiple mode #5378

Closed

Description

@web-padawan

What is the problem?

Related to #154

Reported by @juuso-vaadin - see the internal Slack thread:

Question about the screen reader support of vaadin-item. Does it currently work as it should?
https://vaadin.com/docs/latest/example?path=component/listbox/list-box-basic.ts
I'm testing with Chrome / Safari + VoiceOver and I'm not getting the "checked" or "clickable" anounced.
I did a bit of testing and vaadin-item seems to define aria-selected="true" but that is only supported by certain roles. Could this be the reason for not announcing the selected state?

The DOM structure snippet:

<vaadin-list-box multiple role="list" aria-orientation="vertical">
  <vaadin-item aria-selected="true" selected>Show assignee</vaadin-item>
  <vaadin-item aria-selected="false">Show due date</vaadin-item>
  <vaadin-item aria-selected="true" selected>Show status</vaadin-item>
</vaadin-list-box>

See also this thread by @anezthes about changing default role:

I see role="list" on ListBox but no role on Item. Is that correct or is it going to change? Shouldn’t it be role="listbox" and role="option"?

Browsers

  • Chrome
  • Firefox
  • Safari
  • Safari on iOS
  • Edge

Screen Readers

  • None
  • NVDA
  • JAWS
  • VoiceOver on MacOS
  • VoiceOver on iOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions