[Reader mode] Visited links in dark mode aren't contrasted enough still
Categories
(Toolkit :: Reader Mode, defect)
Tracking
()
People
(Reporter: julienw, Assigned: julienw)
References
Details
Attachments
(3 files)
38.29 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
20.37 KB,
image/png
|
Details |
In bug 1546213 we addressed accessiiblity concerns about the link colors in the reader mode.
However we realized today that the visited link in dark mode uses an alpha color, and it looks like this alpha color isn't used in this context. As a result the visited link is still not contrasted enough (and TBH it isn't nice either) (see attachment).
Steps to reproduce:
- Go on a web page where you can activate the reader view. This one for example: https://en.wikipedia.org/wiki/Web_Accessibility_Initiative
- Click on any link to have a visited link, then come back.
- Click on the reader view button in the address bar
- Go on the appearance menu and activate dark mode.
- Contrast for visited links is too low.
(NOTE: we can't use the accessibility panel to check this, because of bug 1695198)
Assignee | ||
Comment 1•4 years ago
|
||
Hey Gijs, do you think the fact that alpha colors don't work is expected? In that case we can use a color without alpha colors.
Otherwise maybe there's an underlying bug...
Comment 2•4 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #1)
Hey Gijs, do you think the fact that alpha colors don't work is expected? In that case we can use a color without alpha colors.
Otherwise maybe there's an underlying bug...
So, to be clear, the visited link colour in reader mode set to its dark theme is supposed to be rgba(255, 26, 217, 0.3)
. But the result of changing 0.3
to 0.1
or 1
is... nothing. It doesn't look like we care about the alpha value. Emilio, why is that? I don't see anything on https://developer.mozilla.org/en-US/docs/Web/CSS/color suggesting it shouldn't work.
Comment 3•4 years ago
|
||
This is part of the :visited
restrictions to avoid leaking the whole browser history to pages. It is documented here.
Comment 4•4 years ago
|
||
So I don't really know what the desired outcome here is supposed to be (ie if the specified alpha-containing colour would have better contrast if it were semi-transparent - seems unlikely?), but given the background is known we can pre-multiply the value we want and use that, right? Julien, are you interested in providing a patch here?
Assignee | ||
Comment 5•4 years ago
|
||
I'll have some work to do on m-c this week so I can have a look at this passing-by.
The current value wouldn't work (contrast is 1.34) anyway, not sure why our designer gave it to us...
In the original bug, I was suggesting a much lighter #e675fd (contrast is 5.01). Contrast-finder.org suggested #E76ECA (contrast 4.5) when I submitted the previous #B5007F.
From the previous rgb(255, 26, 217), I get #FF4FE3, , but I think it is too agressive...
My preference is still with the lighter #e675fd.
If any of you do prefer #E76ECA please say it though :-)
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Comment on attachment 9206148 [details]
Bug 1695199 - Fix the contrast of visited links in the reader's dark mode r=gijs!
Beta/Release Uplift Approval Request
- User impact if declined: The visited links aren't contrasted enough in the reader with the dark mode, which is a problem for our users with color vision deficiencies.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is only a color change in a CSS variable that's used in one place only, so there is virtually no risk.
- String changes made/needed: none
Assignee | ||
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
bugherder |
Comment 11•4 years ago
|
||
Comment on attachment 9206148 [details]
Bug 1695199 - Fix the contrast of visited links in the reader's dark mode r=gijs!
approved for 87.0b6
Comment 12•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Confirming the fix with the STR from the description using:
- Nightly 88.0a1 (buildID 20210309094921)
- Firefox 87.0b7 (buildID 20210307185839).
Description
•