Description
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
- Add the igx-drop-down component to project. Use default settings.
- 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.
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.