[Siteimprove] Form field missing a label

Created on 17 January 2024, 10 months ago
Updated 31 January 2024, 10 months ago

Problem/Motivation

Siteimprove is reporting that forms that use a "hide-labels" class are invisible to screen readers

IU Framework CSS uses display: none, instead of an approach that keeps the labels visible to screen readers

.filter.hide-labels .form-item-label,
.filter.hide-labels .label,
.filter.hide-labels label {
    display: none;
}

Proposed resolution

Override IU Framework display: none, with display: block, and then hide the styles with a standard "screen reader" only approach.

Drupal provides a utility class called "visually-hidden" that we can use as a guide.

🐛 Bug report
Status

Fixed

Version

2.1

Component

User interface

Created by

🇪🇨Ecuador jwilson3

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