Skip to content

Wrong order of aria-labelledby references in Select #6289

Open
@rolfsmeds

Description

@rolfsmeds

What is the problem?

Currently the Select is announced using the current value first, followed by the label (note the order of the IDREFs in the aria-labelledby attribute of the select button).

<label slot="label" id="label-vaadin-select-0">Sort by</label>
…
<vaadin-select-value-button … aria-labelledby="value-vaadin-select-3 label-vaadin-select-0" …>
  <vaadin-select-item value="1" selected="" id="value-vaadin-select-3">
    Most recent first
  </vaadin-select-item>
</vaadin-select-value-button>

To make this more logical, we recommend swapping the order of the IDREFs around, so that the select is announced using the label first, followed by the current value.

Browsers

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

Screen Readers

  • None
  • NVDA
  • JAWS
  • VoiceOver on MacOS
  • VoiceOver on iOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions