Accessibility test generates errors

Created on 3 June 2022, over 2 years ago
Updated 12 September 2023, over 1 year ago

Problem/Motivation

I want the pages with a TOC to be accessible.

Steps to reproduce

Default install and configure the module.
Add TOC to a content type, open it and test it with e.g. WAVE.
This shows a 'Broken ARIA menu''-error:

An element with role="menu" does not contain at least one element with role="menuitem", role="menuitemcheckbox", or role="menuitemradio".

Proposed resolution

In the javascript the items in the menu get the role 'presentation', see

toc_js/js/toc_js.js:59

if changed to 'menuitem' (like the WAVE tool suggests) the error disappears.
But I'm not an A11Y-expert and not absolutely certain this is the correct solution.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇳🇱Netherlands louisnagtegaal

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024