Skip to content

[igx-drop-down-item] Aria-label defaults to an ID value #15839

@jamesuhl

Description

@jamesuhl

Description

Unless a value for the aria-label is explicitly set, the default behavior of the igx-drop-down component is to set the aria-label to the ID of the <igx-drop-down-item> element, which is announced to the screen reader.

  • igniteui-angular version: 19
  • browser: all

Steps to reproduce

  1. Add the igx-drop-down component to project. Use default settings.
  2. Analyze code in dev tools or use a screen reader. The screen reader will announce the ID when the component receives focus. The image below is from the Infragistics website.
    Image

Result

The screen reader announces the ID

Expected result

The screen reader should announce the option

Solution

The default value should not be an ID. Remove the aria-label from the <igx-drop-down-item>. Let the screen reader announce the text inside the <igx-dropdown-down__inner>. (Test. This should work). If not, set the aria-label equal to the text inside the <igx-dropdown-down__inner> by default.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions