-
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
SelectButton: the aria-labelledby attribute value is invalid for the div.p-button(s) #14979
Comments
Hi, I tested the component with AxeDevtools and couldn't get the error you mentioned above. Which test tool you've used to catch the error? |
I am running jasmine tests using Axe, but my tests are not picking up that error either. I do not think that means that this issue should be ignored. If you look at the docs (Mozilla aria-labelledby and https://w3c.github.io/aria/#aria-labelledby), it does say the 'aria-labelledyby' attribute "identifies the element (or elements) that labels the current element" and that the value should be an 'ID reference list'. |
Hi, Overriding any property will be available by PassThrough implementation. You'll be able to override and assign properties. This feature is currently under development in https://github.com/primefaces/primeng/tree/passthrough we're planning to release within v17 for all components. Moving the issue to the 17.next milestone, we'll close this issue once the PassThrough for selectButton is done. |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap? Thanks a lot for your understanding! |
Describe the bug
The div.p-button's aria-labelledby attribute values in the p-selectButton are invalid. The value is the same as the aria-label, but it should be pointing to the id attribute of the label element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby
Environment
Linux Chrome browser
Reproducer
No response
Angular version
16
PrimeNG version
16.9.1 and master
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
Chrome 122.0.6261.94
Steps to reproduce the behavior
Expected behavior
The aria-labelledby attribute should point to the id of the label element
The text was updated successfully, but these errors were encountered: