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

Update stroke colours to meet approx 7:1 contrast #9

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

Stanton
Copy link
Contributor

@Stanton Stanton commented Oct 19, 2022

This changes the stroke colours in order to increase contrast against the related fill colours.

Currently, none of the combinations meet the contrast requirements for regular text as required by WGAC 2.1, some choices (particularly orange and green) are difficult to distinguish and will pose potential issues for anyone with visual impairments.

This represents a failure to meet the following accessibility guidelines:

  1. AA https://www.w3.org/TR/WCAG21/#contrast-minimum
  2. AAA https://www.w3.org/TR/WCAG21/#contrast-enhanced

All stroke colours have been darkened to at least a 7:1 contrast ratio against the fill, allowing the elements to meet AAA requirements for 'regular' text and meet both success criteria 1.4.4 (minimum) and 1.4.6 (enhanced) while still providing a pleasing colour choice.

Before
Screenshot 2022-10-19 at 13 58 15

After
Screenshot 2022-10-19 at 13 45 17

Alternative solutions
It may be preferable to keep the outline border as-is and only modify the text and icon colours to either the darkened variants, or simply back to black.

@CLAassistant
Copy link

CLAassistant commented Oct 19, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@barmac barmac left a comment

Choose a reason for hiding this comment

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

Thanks! I like this contribution a lot. I adjusted the commit message to adhere to conventional commits.

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

Successfully merging this pull request may close these issues.

3 participants