Prevent the use of summary elements that create accessibility failures

Created on 3 January 2023, over 1 year ago
Updated 25 June 2024, 3 days ago

Problem/Motivation

Hi, When i scan website using AXE Dev Tool for AODA it's flag the error "Interactive control must not be nested.(Critical Impact)" in the accordion

Steps to reproduce

Scan the page which contains accordion using AXE Dev Tool.

Proposed resolution

Constrain which elements CKEditor will allow within the summary, to exclude anything interactive.

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇮🇳India gawalin

Live updates comments and jobs are added and updated live.
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.

  • 🇨🇦Canada mandclu

    According to a technical reference, any phrasing content is valid within a summary. Notably, this does not include links, though it does include elements like that are also classified as interactive and I would assume therefore should also not be valid.

    An argument could be made that this module doesn't itself create links within the summary, it just doesn't prevent an author from adding links, buttons, or other interactive elements there. I believe it should be possible to restrict interactive elements from being put into the summary (via the WYSIWYG, at least). I'm tempted to make this a configurable feature, with accessibility compliance enforced as a default, but I may spin the configurability off into a separate issue.

  • 🇩🇪Germany hexabinaer Berlin, Germany

    For completeness:

    @mandclu reading on in the mentioned "phrasing content" list you'll find elements with specific conditions.

    <a>, if the href attribute is present

Production build 0.69.0 2024