Skip to content
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

Consider aria-labelledby and aria-describedby when making IDs unique. #52

Open
waruyama opened this issue May 23, 2021 · 1 comment
Open
Labels
accessibility Related to accessibility bug Something isn't working

Comments

@waruyama
Copy link
Collaborator

The attributes aria-labelledby and aria-describedby can be used to enhance accessibility for SVG elements. For both the value consists of a space separated list of element IDs. Currently these IDs are not changed when we make IDs unique. As a result the IDs are no longer in the DOM, so the attributes do not work anymore. We should make the IDs in these attribute values unique, too.

aria-labelledby' and aria-describedby` on MSN web-docs:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute

@waruyama waruyama added bug Something isn't working accessibility Related to accessibility labels May 23, 2021
@waruyama waruyama changed the title Consider aria-labelledby and aria-describedby`` when making IDs unique. Consider aria-labelledby and aria-describedby when making IDs unique. May 23, 2021
@waruyama
Copy link
Collaborator Author

There are other ARIA attributes that have IDs references or ID reference lists as values, for example aria-flowto, aria-owns, aria-controls, aria-errormessage, aria-details.

More details at https://www.w3.org/TR/wai-aria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Related to accessibility bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant