Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Carousels have a number of known accessibility & usability challenges with them.
To help mitigate some of the accessibility challenges it would be good to:
- Add aria-labelledby to the tabpanels which point to the id of the associated control/tab.
- To each control/tab, add aria-controls (which points to the id of the associated tabpanel) and aria-selected (boolean) attributes.
http://www.marcozehe.de/2013/02/02/advanced-aria-tip-1-tabs-in-web-apps/
http://www.accessiq.org/create/content/anatomy-of-an-accessible-carousel
Comment | File | Size | Author |
---|---|---|---|
#9 | add_aria_for_accessibility-2092283-9.patch | 1.23 KB | jackfoust |
Comments
Comment #1
gillisig CreditAttribution: gillisig commentedI think this is pretty important so I am bumping this issue up!
Comment #2
NickDickinsonWildeComment #3
NickDickinsonWildeOnly fixed in 7.x (which is 90% of active installs anyways). Postponing for 8x as I'm thinking of a significant amount of adjustments there.
Comment #6
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedTag clean up: "accessibility" is the preferred one. The "a11y" tag doesn't have many issues so I'm moving them all to "accessibility". This issue was already closed, and is in contrib, but this is so the core accessibility maintainers don't have to monitor two tags.
Comment #7
adixon CreditAttribution: adixon as a volunteer commentedI believe this causes accessibility issues if you don't include a pager.
Specifically, in such a case, it adds an aria-labelledby with a non-existent id.
The patch would be:
Comment #8
jackfoust CreditAttribution: jackfoust as a volunteer and at Muni-Link commentedPatch in #7 fixed my issues with WAVE.
Comment #9
jackfoust CreditAttribution: jackfoust as a volunteer and at Muni-Link commentedWhile the patch in #7 fixed my accessibility errors, it did cause HTML validation errors for me. Patched to fix bad HTML when not using pager.