-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
What is missing?
What is missing:
The Foundation Accordion is getting flagged by our Accessibility Assessment scan. Finding is: "The trigger elements for the disclosure widgets (show/hide) are elements with a role="tab" attribute. The tab role is not appropriate for show/hide, especially in combination with the aria-expanded attribute. The trigger should either be a button, or have a role="button" attribute."
What is wrong now ?
Currently, I can override with $('a.accordion-title').attr("role", "button"); in my JS and it seems to work, but this is not ideal.
...
Possible Solution
Solution*
Change the markup to use a <button role='tab'>
rather than using an <a>
to trigger an accordion so that the accordion is truly in compliance with Accessibility standards, or change the .accordion-title from role=tab to role=button.
...
Context
...
Your Environment
- Foundation version(s) used:
- Browser(s) name and version(s):
- Device, Operating System and version:
Checklist
- I have read and follow the CONTRIBUTING.md document.
- There are no other issues similar to this one.
- The issue title and template are correctly filled.