Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Fix color contrast problems #998

Closed
brenoferreira opened this issue May 27, 2020 · 20 comments
Closed

Fix color contrast problems #998

brenoferreira opened this issue May 27, 2020 · 20 comments
Labels
accessibility (a11y) 🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing feature

Comments

@brenoferreira
Copy link
Contributor

Lighthouse has found many color contrast problems. Please refer to the reports to see what the problems are.

Some of the problems found which have low contrast scores are: the tomato color over gray backgrounds, some dark grays over gray, tag labels' gray over white.

@kgodey kgodey added this to Pending Review in Backlog May 27, 2020
@kgodey kgodey moved this from Pending Review to Q2 2020 in Backlog May 27, 2020
@kgodey kgodey moved this from Q2 2020 to Q3 2020 in Backlog May 27, 2020
@dos077
Copy link
Contributor

dos077 commented Jun 1, 2020

The color is not defined in this repo, but at creativecommons/vocabulary. The $color-tomato variable is too light on a white black ground, supposedly. But going through Google's own material color palette, it seems like only the deep-orange darken-4 color can satisfy the >4.5 contrast requirement. Not sure how the design process of vocabulary group works, a plain orange text link maybe a big tough to satisfy the accessibility score without looking a bit ugly.

@Atanda1
Copy link

Atanda1 commented Jun 4, 2020

I'll like to work on this contrast ratio issue

@kgodey
Copy link
Contributor

kgodey commented Jun 4, 2020

tagging @panchovm, @annatuma, and @dhruvkb to weigh in on color contrast issues.

@dhruvkb
Copy link
Contributor

dhruvkb commented Jun 4, 2020

@dos077 I am pretty sure that the primary brand colors are immutable and using them is unavoidable. This means running into issues like this is inevitable. That said, here is the only way to rectify this:

  • We can redesign the low-contrast parts to be more legible using the An guide and switch to more legible color combinations in the affected areas.
  • We can setup monitoring for accessibility in Vocabulary that will allow us to catch such problems in more components and earlier in their lifecycle.

@Atanda1 this requires some design work. Maybe you can help @panchovm on that.

@dos077
Copy link
Contributor

dos077 commented Jun 4, 2020

@dhruvkb we can just copy the link style of the usecontrast.com, underline into colored highlight. Preserves brand color while also improves link contrast. I vague remember seeing something like a UI kit for creative common, not sure if this change is large enough to violate any design principal though.

@fcoveram
Copy link

fcoveram commented Jun 4, 2020

I'm not sure about where exactly is the contrast problem in the current application. The initial description indicates a problem of "tomato color over gray backgrounds", but accessibility guides refer to text color on backgrounds, not segments of color over each other. That contrast might be affected by the color lightness.

I used the Material Design tool to check the contrast of $color-tomato as background for large text with white color, as we are currently using it, and it meets the AA level. See the screenshot below.

Screen Shot 2020-06-04 at 12 20 03

For gray background (specifically, $color-lighter-gray), we are using $dark-slate-gray (custom text section in the example below) and the mix meets the level AA and AAA.

Screen Shot 2020-06-04 at 12 20 09

I totally agree with @dhruvkb on using the contrast guide to work on these issues, and that said, the boldness of text styles might be insufficient. Mostly because the large text size varies in every typography. It is a visual effect given by shapes and white spaces between characters. The guide recommends 24px, and I agree with following that definition.

However, regarding the accessibility problems mentioned, I do not see the problem. Maybe I am missing something 🤔

@brenoferreira
Copy link
Contributor Author

Screen Shot 2020-06-04 at 13 54 34

here's an example of tomato over white

@fcoveram
Copy link

fcoveram commented Jun 4, 2020

Oh. Now I see, we need to work on links. Thanks @brenoferreira

@Atanda1
Copy link

Atanda1 commented Jun 4, 2020

So what's the conclusion? Are we changing the colour contrast of the link and background

@fcoveram
Copy link

fcoveram commented Jun 4, 2020

We are changing the tomato color for links. Definitely

@dhruvkb
Copy link
Contributor

dhruvkb commented Jun 4, 2020

This seems like a Vocabulary issue. Should I transfer this issue to creativecommons/vocabulary?

@kgodey
Copy link
Contributor

kgodey commented Jun 5, 2020

This is a general issue for all color contrast issues found by Lighthouse, I think it makes sense to leave it here and open new (related) issues in Vocabulary for each of the problems.

@Atanda1
Copy link

Atanda1 commented Jun 5, 2020

How do I come in now?

@kgodey
Copy link
Contributor

kgodey commented Jun 5, 2020

@Atanda1 please wait for @panchovm to create new tickets.

@Atanda1
Copy link

Atanda1 commented Jun 5, 2020

Ok then...I'll look out for that

@wajeehamushtaq
Copy link

Does anyone working on this issue or may I work on it?

@annatuma
Copy link

annatuma commented Jun 9, 2020

Individual color issues should be addressed in Vocabulary, and updates will be made in parallel to the Design Library.

Leaving to @dhruvkb and @panchovm to create appropriate tickets in Vocabulary (starting with the link color issue), and make changes in Design Library.

We'll create more tickets once the reports are fully reviewed.

For contributors, I recommend looking for issues marked as "help wanted", and keep an eye on the Vocabulary repo for individual tickets there related to this.

@kgodey kgodey moved this from Q3 2020 to Internships 2020 in Backlog Jun 12, 2020
@ayanchoudhary
Copy link
Contributor

ayanchoudhary commented Jun 24, 2020

@Atanda1
Copy link

Atanda1 commented Jun 24, 2020 via email

@kgodey kgodey moved this from Internships 2020 to Q4 2020 in Backlog Sep 18, 2020
@kgodey kgodey added ✨ goal: improvement Improvement to an existing feature and removed enhancement labels Sep 24, 2020
@zackkrida
Copy link
Contributor

Closed, as all color contrast a11y issues have been resolved in vocabulary.

@kgodey kgodey removed this from Q4 2020 in Backlog Oct 1, 2020
@kgodey kgodey added this to Ready for Development in Active Sprint via automation Oct 1, 2020
@kgodey kgodey moved this from Ready for Development to Done in Active Sprint Oct 1, 2020
@dhruvkb dhruvkb added the 🕹 aspect: interface Concerns end-users' experience with the software label Oct 25, 2020
@TimidRobot TimidRobot removed this from Done in Active Sprint Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility (a11y) 🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing feature
Development

No branches or pull requests

10 participants