Closed (fixed)
Project:
Style Guide
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2024 at 21:39 UTC
Updated:
12 May 2025 at 03:54 UTC
Jump to comment: Most recent
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.
Change the image button's #name to a #title.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dcam commentedComment #5
dcam commented