Visitar URL original
USWDS - Step indicator: Fix color contrast on pending items by amyleadem · Pull Request #5048 · uswds/uswds · GitHub
Skip to content

USWDS - Step indicator: Fix color contrast on pending items - #5048

Merged
thisisdano merged 2 commits into
developfrom
al-step-indicator-contrast
Feb 28, 2023
Merged

thisisdano merged 2 commits into
developfrom
al-step-indicator-contrast

Conversation

@amyleadem

@amyleadem amyleadem commented Nov 21, 2022 •

Copy link
Copy Markdown
Contributor

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

@mahoneycm mahoneycm left a comment

Copy link
Copy Markdown
Contributor

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

@mejiaj mejiaj left a comment

Copy link
Copy Markdown
Contributor

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

mejiaj commented Jan 26, 2023

Copy link
Copy Markdown
Contributor

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