Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: slightly increase color contrast of gray-600 to meet 4.5:1 a11y standard on white backgrounds #434

Closed
wants to merge 2 commits into from

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented May 1, 2024

The gray-600 color does not meet the a11y standard of 4.5:1 color contrast ratio on white backgrounds. This updates the color slightly to get it there so that this can be used as a back light gray color for designs within Cypress that meets the standard.

Example of violation within Cypress App.

Before

Screenshot 2024-05-01 at 2 26 38 PM

After

Screenshot 2024-05-01 at 2 27 20 PM

Before

Screenshot 2024-05-01 at 2 23 11 PM

After

Screenshot 2024-05-01 at 2 22 52 PM

Copy link

changeset-bot bot commented May 1, 2024

🦋 Changeset detected

Latest commit: bdae906

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cypress-design/css Patch
@cypress-design/rollup-plugin-tailwind-keep Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cypress-design ✅ Ready (Inspect) Visit Preview May 2, 2024 2:50pm

@jennifer-shehane jennifer-shehane self-assigned this May 1, 2024
@jennifer-shehane jennifer-shehane changed the title fix: slightly increase color contrast of gray-500 to meet 45:1 a11y standard fix: slightly increase color contrast of gray-600 to meet 45:1 a11y standard May 1, 2024
@jennifer-shehane jennifer-shehane changed the title fix: slightly increase color contrast of gray-600 to meet 45:1 a11y standard fix: slightly increase color contrast of gray-600 to meet 4.5:1 a11y standard May 1, 2024
Copy link

cypress bot commented May 1, 2024

Passing run #2169 ↗︎

0 212 0 0 Flakiness 0

Details:

Merge bdae906 into 6b9363d...
Project: cypress-design Commit: c489bc7508 ℹ️
Status: Passed Duration: 03:07 💡
Started: May 2, 2024 2:56 PM Ended: May 2, 2024 2:59 PM

Review all test suite changes for PR #434 ↗︎

@jennifer-shehane jennifer-shehane changed the title fix: slightly increase color contrast of gray-600 to meet 4.5:1 a11y standard fix: slightly increase color contrast of gray-600 to meet 4.5:1 a11y standard on white backgrounds May 2, 2024
Copy link
Contributor

@ryanjwilke ryanjwilke left a comment

Choose a reason for hiding this comment

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

I would caution against fixing our color contrast issues by changing the color. I mentioned this is Slack, but the new standard the team has shifted to is to just use gray-700 in our designs instead. We used gray-600 sometimes in the past before we paid too much attention to a11y requirements, but we shifted to using gray-700 in most scenarios about a year ago.

@jennifer-shehane
Copy link
Member Author

@ryanjwilke It is a slightly bigger shift in color to gray-700 than the slight change here. But I'm ok updating to gray-700 for these uses if that's the suggestion. Honestly we have a lot more uses of gray-500 on white backgrounds in the App, so I'm not sure the approach with those either.

Today's gray-600

Screenshot 2024-05-02 at 11 45 33 AM

gray-600 in this PR

Screenshot 2024-05-02 at 11 46 14 AM

gray-700

Screenshot 2024-05-02 at 11 45 49 AM

@ryanjwilke
Copy link
Contributor

@jennifer-shehane Yep, I figured this might be for resolving a text contrast issue. I would suggest to use gray-700 instead as that aligns with how the design team has been resolving those issues throughout all of our designs at this point.

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.

None yet

3 participants