Image Button is missing an alt attribute

Created on 3 October 2024, 6 months ago

Problem/Motivation

The Image Button element is missing an alt attribute. My accessibility validator said it's a violation of WCAG 1.1.1, which is the section on providing text alternatives for non-text content.

I checked the ImageButton class to see if this is a core bug, but it isn't. #title properties in an image_button render array are entered into the alt attribute. But the Style Guide's implementation doesn't have a #title. For some reason it has a #name instead.

Proposed resolution

Change the image button's #name to a #title.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dcam

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024