USWDS - Step indicator: Fix color contrast on pending items #5048
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.
Summary
Updated the default value for
$theme-step-indicator-segment-color-pending
frombase-lighter
togray-40
. Now, the graphical elements related to pending items meet accessibility standards for contrast ratio.Related issue
Closes #4836
Preview link
Preview link: Step indicator page
Problem statement
Meaningful graphical objects must have a color contrast ratio of at least 3:1. However, the pending items in the step indicator have a contrast ratio of only 1.25.
Solution
Updating the default value of
$theme-step-indicator-segment-color-pending
frombase-lighter
(#e6e6e6) togray-40
(#919191) creates a color contrast of 3.15, which passes standards for graphical objects.Before opening this PR, make sure you’ve done whichever of these applies to you:
git pull origin [base branch]
to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch isdevelop
).npm test
and confirm that all tests pass.