-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropdown, MultiSelect, AutoComplete, CascadeSelect: aria-label missing from inner ul element #14790
Comments
Hi, ariaLabel and ariaLabelledBy are given to focusable input elements. The test we performed using Axe DevTools shows that there is no issue as you mentioned. correct use:
This is a DOM node from the basic example in primeng.org. As you see here list item has aria-label and it's generated by option label. The
|
Hi, We are performing cypress axe tests to check for any a11y violations, and cypress has reported this violation for
Since, the The Regards, |
Hi, Thanks for the clarification. In this case, do you need a default assigned aria-label value or do you want to send the aria-label via an input? |
Hi, The default aria-label would be fine for us. Regards, |
Hi, Thanks a lot for the feedback, we'll add an aria label to the element. |
Describe the bug
We are trying to set
aria-label
forp-dropdown
which is getting successfully applied to the mainp-dropdown
component, but is missing from it's innerul
element.We are following the steps as per documented here.
Environment
OS: Windows 10
Reproducer
No response
Angular version
16.2.7
PrimeNG version
16.5.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
Chrome 121.0.6167.161, Edge 121.0.2277.112
Steps to reproduce the behavior
<p-dropdown data-test="type" [options]="typeOptions" formControlName="type" placeholder="Select type"></p-dropdown>
<p-dropdown data-test="type" [options]="typeOptions" formControlName="type" ariaLabel="Select type"></p-dropdown>
<p-dropdown data-test="type" [options]="typeOptions" formControlName="type" aria-label="Select type"></p-dropdown>
Expected behavior
aria-label should be applied to inner ul element
The text was updated successfully, but these errors were encountered: