Problem/Motivation
The .usa-input-required class was deprecated in USWDS v2, and removed in v3.
| USWDS v1 |
USWDS v2 |
...
|
...
|
.usa-input-label-required
|
.usa-label.usa-label--required
|
...
|
...
|
.usa-input-required
|
deprecated: no longer recommended
|
Steps to reproduce
This is the class supplied via uswds_base_preprocess_form_element_label() when a form element is required.
Proposed resolution
Deprecate this usage in lieu of the .usa-label.usa-label--required
Remaining tasks
Determine a non-breaking implementation (perhaps add the new class).
Mark the deprecated class to be removed in the next major release.
User interface changes
The USWDS supported required asterisk will begin to appear on required field labels.
API changes
None.
Data model changes
None.
Comments
Comment #2
mferanda commentedGood catch!
Are you able to change, test, and validate fix?
Comment #4
mferanda commentedChanged to
$variables['attributes']['class'][] = 'usa-label--required';
Comment #6
mferanda commented