-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix ARIA controls title #3792
Labels
Comments
32 tasks
32 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem/Motivation
When scanning the site with Dubbot, this Level A issue arose as seen on https://commencement.arizona.edu/convocations
Describe the bug
In accordions, the
aria-controls=""
is not referencing the correct ID of the accordion body.To Reproduce
aria-controls="az-accordion-aria-controls--2"
on the title's button tagid="az-accordion--2"
on the accordion body divProposed resolution
Change the ID associated with accordion titles.
Example: Change
aria-controls="az-accordion-aria-controls--2"
toaria-controls="az-accordion--2"
https:/az-digital/az_quickstart/blob/main/modules/custom/az_accordion/src/Plugin/Field/FieldFormatter/AZAccordionDefaultFormatter.php#L137
Expected behavior
aria-controls
andid
should matchAdditional context
https://app.dubbot.com/sites/5dc32d02482faf0915d31627/pages/65f43beab48ef57db1f27a1d?tab=accessibility&issueId=aria-valid-attr-value
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls
The text was updated successfully, but these errors were encountered: