Open Bug 1575347 Opened 6 years ago Updated 5 years ago

Replace #d74345 with an accessible CSS variable

Categories

(UX Systems :: Component, defect, P3)

defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: itiel_yn8, Assigned: shorlander)

References

Details

Attachments

(2 files)

Attached image Screenshot
Priority: -- → P3
See Also: → 1449774

Please assign this bug to me

Thanks

Assignee: nobody → scientistartist
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

https://searchfox.org/mozilla-central/search?q=color%3A+%23d74345%3B&case=false&regexp=false&path=

It should be a CSS variable with accessible colors for each theme. For #d74345, the dark theme contrast is 2.00 and the light theme contrast is 4.39 (checked using the a11y inspector), while the WCAG standards asks for at least 4.5 for normal text, 3 for large text.

The pocket usages should be excluded from this change though, since the pocket panel is always light.

Summary: "Connection is not secure" labels don't meet WCAG color contrast requirements when in dark mode → Replace #d74345 with an accessible CSS variable

I first introduced different values of red and tested, but felt it was too dull
The background color of the panel is slate color which is dull, so I went for a brighter color(for dull-bright contrast)

Also if one looks at "Connection is secure" string, they would find the test yellowish green or greenish yellow which is bright too. Please check the brightness of this string.

The slate grey seemed to dull the red, I don't remember the different values I used, one of them was " #ff4500".

I did look at WCAG specifications for the contrast, but a layperson would be looking at these and the text has to stand out, this is why the brightening by changing to #ff9900

I'm going to bring this up with the UX Systems team. I also noticed that the green (secure connection) also does not pass contrast ratio. This feels like something that needs to be fixed on all of dark theme consistently. Adding NI on myself to get back to this bug when I have more info!

Flags: needinfo?(epang)
Component: Site Identity → Themes
Product: Firefox → Toolkit
Assignee: scientistartist → shorlander
Component: Themes → Asset
Product: Toolkit → UX Systems
Component: Asset → Component
Flags: needinfo?(epang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: