Replace deprecated USWDS v1 form hint class #634
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes:
Replaces
.usa-form-hint
with.usa-hint
..usa-form-hint
is a legacy class name from USWDS v1, replaced in USWDS v2 with.usa-hint
(documentation).We still define custom styles for this class in the Login.gov Design System (source), but I'd like to remove these styles, and this appears to the only instance in use I could find.
This does have a visual impact, but it is intended to bring into alignment with hints on other Login.gov sites. If needed, we could add additional utility classes to restore the original style.
Effective styles:
Before:
After:
Screenshots: