colorbox-formatter.html.twig uses aria attributes incorrectly

Created on 22 April 2024, 2 months ago
Updated 14 May 2024, about 1 month ago

Problem/Motivation

The template that generates markup for the colorbox field formatter, colorbox-formatter.html.twig, applies the aria-controls attribute incorrectly.

According to https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attribut..., the value must be an element id or a list of element ids. This template uses the class "colorbox" as a value.

Proposed resolution

Auto generate a unique ID for the colorbox image, and apply that as the aria-controls value.

Remaining tasks

Do it!

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States paulmckibben Atlanta, GA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024