Page MenuHomePhabricator

Minerva should use Codex night mode palette mixin: Links inside Codex message box are inaccessible
Open, HighPublic1 Estimated Story Points

Description

Steps to replicate the issue (include links if applicable):

Check color contrast on the following pages:

What happens?:

  • The red link is inaccessible in the first example
  • The blue links are inaccessible in the second example.

Screenshot 2024-03-23 at 11.58.12 AM.png (302×1 px, 87 KB)

What should have happened instead?:

The colors should be accessible e.g. meet AA color contrast guidelines.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript
CCiufo-WMF changed the subtype of this task from "Bug Report" to "Task".Mon, Apr 1, 5:30 PM

We are updating the token values in Codex to fix this issue on the varying statuses of Messages. @Jdlrobson in case you are hard coding these values for now, here are the updated values for the backgrounds of the Messages in dark mode.

notice#202122
success#00261e
warning#301d00
error#421211

Let me know if there's anything else you need for this.

@Jdlrobson Is it possible for visited links or red links to be present in these Messages?

@Jdlrobson Is it possible for visited links or red links to be present in these Messages?

Yes. Please refer to the URLs in the description.

Apologies for missing that. I will provide new color values in the table above that will work for all types of links on the varying Message status backgrounds for dark mode. Please standby.

Apologies for missing that. I will provide new color values in the table above that will work for all types of links on the varying Message status backgrounds for dark mode. Please standby.

Note, the red links are also not accessible in the standard theme.

@Jdlrobson Thanks for that note. We are working on a broader color update that will be built into Codex. Also, the table above has been updated with colors that meet accessibility criteria.

DTorsani-WMF subscribed.

Colors have also been updated in Codex tokens. Assigning back to @Jdlrobson and removing from the design system board.

@DTorsani-WMF could you expand on exactly what's changed (it's not clear from your update)?
I am still seeing color contrast issues on links in:
https://test.m.wikipedia.org/w/index.php?title=Wage_unit&oldid=439372&minervanightmode=1

Screenshot 2024-04-15 at 1.51.38 PM.png (87×1 px, 28 KB)

I wasn't sure if you were hard coding these dark mode values still or using what is being built into Codex. I think there may be a patch with some updates on our end that has not been published yet, but that update addresses this issue.

The styles for the message box come from Codex, so these will need to be done inside the Codex library.

I think there may be a patch with some updates on our end that has not been published yet, but that update addresses this issue.

Okay that would make sense. @CCiufo-WMF any idea where that can be tracked?

@Jdlrobson the new colors Derek is referencing were added as part of T360341, which is set to be included in the Codex release going out today, so they are technically not there yet. The patch is https://gerrit.wikimedia.org/r/c/design/codex/+/1015983. Note that in order to increase the contrast, the colors that are changing are not the link colors but rather the background colors of the messages in dark mode.

The latest Codex release went out and includes the dark mode decision tokens. I think once the experimental build is folded into the main build as described in T354889#9720761 and Minerva + Vector use the tokens from Codex, this will be fixed.

The latest Codex release went out and includes the dark mode decision tokens. I think once the experimental build is folded into the main build as described in T354889#9720761 and Minerva + Vector use the tokens from Codex, this will be fixed.

Minerva+Vector get these styles directly from Codex and they don't seem to be applying on https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&oldid=612901&minervanightmode=1 ?

Minerva+Vector get these styles directly from Codex and they don't seem to be applying on https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&oldid=612901&minervanightmode=1 ?

But aren't the color values for the dark palette currently defined at the skin level (only in Minerva too)? I thought that was the case until we're using the decision tokens just introduced in https://gerrit.wikimedia.org/r/c/design/codex/+/1015983. That's why @DTorsani-WMF was providing the hex values, to be added to the skin in the meantime. It feels like there's something we might not be understanding here.

Jdlrobson renamed this task from Links inside Codex message box are inaccessible to Minerva should use Codex night mode palette mixin: Links inside Codex message box are inaccessible.Thu, Apr 18, 8:43 PM
Jdlrobson triaged this task as High priority.

Change #1021568 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Use tokens from Codex

https://gerrit.wikimedia.org/r/1021568

@Jdlrobson just a note, since I saw you comment on it in the patch, some of the tokens were indeed intentionally left the same between light and dark mode. Worth having @egardner and @DTorsani-WMF review though.

Change #1021568 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Use tokens from Codex

https://gerrit.wikimedia.org/r/1021568

Change #1024524 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Remove tokens with same values in light theme

https://gerrit.wikimedia.org/r/1024524

Change #1024525 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Use light theme colors for focus colors

https://gerrit.wikimedia.org/r/1024525

Change #1025468 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Complete transition to Codex color palettes

https://gerrit.wikimedia.org/r/1025468

Change #1024524 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Remove tokens with same values in light theme

https://gerrit.wikimedia.org/r/1024524

Change #1024525 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Use light theme colors for focus colors

https://gerrit.wikimedia.org/r/1024525

Change #1025468 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Complete transition to Codex color palettes

https://gerrit.wikimedia.org/r/1025468

Edtadros subscribed.

Test Result - Beta

Status: ❌ FAIL
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

Test Steps

Check color contrast on the following pages:

https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&oldid=612901&minervanightmode=1
https://en.m.wikivoyage.org/wiki/User%3AGacor314?safemode=1
https://test.m.wikipedia.org/w/index.php?title=Wage_unit&oldid=439372&minervanightmode=1
What happens?:

❌ AC1 The red links in Codex message box should meet AA color contrast guidelines
I used https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1 for the red link in the message box.

screenshot 282.png (640×1 px, 269 KB)

✅ AC2: The blue links in Codex message box should meet AA color contrast guidelines

screenshot 283.png (704×1 px, 137 KB)

NOTE: While not in scope of the task, the gray link in the Codex message box does NOT meet AA color contrast guidelines

screenshot 284.png (519×1 px, 147 KB)

Thanks as always!

Test Result - Beta

Status: ❌ FAIL
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

Test Steps

Check color contrast on the following pages:

https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&oldid=612901&minervanightmode=1
https://en.m.wikivoyage.org/wiki/User%3AGacor314?safemode=1
https://test.m.wikipedia.org/w/index.php?title=Wage_unit&oldid=439372&minervanightmode=1
What happens?:

❌ AC1 The red links in Codex message box should meet AA color contrast guidelines
I used https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1 for the red link in the message box.

screenshot 282.png (640×1 px, 269 KB)

Captured in T363778. It's possible the Codex release today might fix this so let's try this again on Wednesday. If not we can move to sign off and state that this failed and will be dealt with in a follow up.

✅ AC2: The blue links in Codex message box should meet AA color contrast guidelines

screenshot 283.png (704×1 px, 137 KB)

NOTE: While not in scope of the task, the gray link in the Codex message box does NOT meet AA color contrast guidelines

screenshot 284.png (519×1 px, 147 KB)

I created T363878 for this one.

Jdlrobson reassigned this task from bwang to Edtadros.