Skip to content

Conversation

amyleadem
Copy link
Contributor

@amyleadem amyleadem commented Nov 21, 2022

Summary

Updated the default value for $theme-step-indicator-segment-color-pending from base-lighter to gray-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 from base-lighter (#e6e6e6) to gray-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:

  • Run git pull origin [base branch] to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch is develop).
  • Run npm test and confirm that all tests pass.

@amyleadem amyleadem marked this pull request as ready for review November 21, 2022 16:23
Copy link
Contributor

@mahoneycm mahoneycm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and passes color contrast minimums! Thanks Amy!

@amyleadem amyleadem requested review from thisisdano and removed request for thisisdano November 28, 2022 18:23
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Amy! Contrast has improved. Not seeing the axe contrast issue anymore.

@amyleadem amyleadem added this to the uswds 3.4.0 milestone Dec 21, 2022
@mejiaj mejiaj removed this from the uswds 3.4.0 milestone Jan 26, 2023
@mejiaj
Copy link
Contributor

mejiaj commented Jan 26, 2023

Removing from milestone because it's issue #4836 is already linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USWDS - Step Indicator Page: Not Completed Steps Have Poor Color Contrast
4 participants