Disallowed markup in definition lists

Created on 11 July 2023, about 1 year ago
Updated 14 July 2023, about 1 year ago

Problem/Motivation

On several pages such as admin/structure and node/add, the following error appears with a basic A11y scan

<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements

In these cases, it is because there is an <a> tag in the definition list markup. These items should remain links, so we should change the markup to use something other than definition lists

Steps to reproduce

Proposed resolution

Change the <dl><dd><dt> to <div>s. Instead of using definitions, associate elements using aria-details.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bnjmnm Ann Arbor, MI

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

Production build 0.71.5 2024