Open Bug 1303835 Opened 8 years ago Updated 11 months ago

The grey text in the location bar doesn't have enough contrast with dark theme

Categories

(Firefox :: Theme, defect, P3)

defect

Tracking

()

People

(Reporter: jaws, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

Attached image Dark theme
See attached screenshot. The greytext (not the hostname) is barely visible due to the low contrast.
Attached image Light theme
Priority: -- → P3
Blocks: 1331679

Contrast on mac is 3.51:1 on the dark theme. To make it good enough, we'd need it to be 4.5:1. It's marginally better on the light and default theme (3.95:1), but that's still technically too low.

The code at https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/layout/generic/nsTextFrame.cpp#3978-3980 currently just uses text color with 0.5 alpha. Upping it to a higher alpha component would probably fix this issue.

Of course, that would de-prioritize the emphasis we currently put on the main part of the domain. I don't know what we could do about that. Perhaps Aaron can help.

Flags: needinfo?(abenson)
Summary: The grey text in the location bar doesn't have enough contrast with dark Developer Edition theme → The grey text in the location bar doesn't have enough contrast with dark theme
Severity: normal → S3
Flags: needinfo?(jules)

Took a look at this with our latest dark theme colors. The location bar's background color is now #1C1B22. With the gray text being .5 alpha of the text color, this now passes WCAG AA (5.18:1) but not AAA. If we agree that is good enough, then we can close this.

Flags: needinfo?(jules)
Depends on: 1821203
Flags: needinfo?(abenson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: