`usa-label` classes being added to form items.

Created on 18 July 2022, almost 2 years ago
Updated 1 November 2023, 8 months ago

Problem/Motivation

The CSS class usa-label is being added to form item elements. This class should only be added to the label element of a form item. The usa-label--error CSS class is also being added in the same CSS class array when the element has an error.

Steps to reproduce

  1. View the markup of a rendered form with an error
  2. See the usa-label and usa-label--error classes on the element with the error.

Proposed resolution

Remove the usa-label and usa-label--error items from the classes array in the uswds_base/templates/form/form-element.html.twig twig template.

Remaining tasks

N/A

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States PCate

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024