Page MenuHomePhabricator

[Regression] Red links not compatible with night theme in both mobile and desktop
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to reproduce

  1. Test the following types of pages
    1. A page without a talk page: https://en.m.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5721056271356895-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n?minervanightmode=1
    2. A page with red links in article: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181
    3. A page with red link inside message box at top of article: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1
  2. Check for color contrast issues

Expected results

No accessibility issues with red links

Actual results

Screenshot 2024-04-29 at 4.12.31 PM.png (1×2 px, 1 MB)

Environments observed

  • Browser version:
  • OS version:
  • Device model:
  • Device language:

Check any additional observations

Stack trace

Console output

Derived Requirement

Ensure that red links are compatible with night mode on both mobile and desktop, maintaining proper visibility and contrast.

BDD

Feature: Red Links Compatibility with Night Mode

  Scenario: Red links visibility on a page without a talk page in night mode
    Given the user is viewing a page without a talk page in night mode
    When the user checks the color of red links
    Then the red links should be visible and meet accessibility contrast standards

  Scenario: Red links visibility in an article in night mode
    Given the user is viewing an article with red links in night mode
    When the user checks the color of red links
    Then the red links should be visible and meet accessibility contrast standards

  Scenario: Red links visibility in a message box in night mode
    Given the user is viewing a page with red links inside a message box at the top of the article in night mode
    When the user checks the color of red links
    Then the red links should be visible and meet accessibility contrast standards

Test Steps

Test Case 1: Red Links Visibility on a Page Without a Talk Page in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5721056271356895-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n?minervanightmode=1.
  2. Ensure night mode is enabled.
  3. AC1: Confirm that the red links are visible and meet accessibility contrast standards.

Test Case 2: Red Links Visibility in an Article in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1.
  2. Ensure night mode is enabled.
  3. AC2: Confirm that the red links in the article are visible and meet accessibility contrast standards.

Test Case 3: Red Links Visibility in a Message Box in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1.
  2. Ensure night mode is enabled.
  3. AC3: Confirm that the red links inside the message box at the top of the article are visible and meet accessibility contrast standards.

QA Results - Beta

ACStatusDetails
1T363778#9813139
2T363778#9813139
3T363778#9813139

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Jdlrobson renamed this task from [Bug] Red links not compatible with night theme to [Bug] Red links not compatible with night theme in both mobile and desktop.Tue, Apr 30, 11:08 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson added a project: Regression.

This is a regression from T360845. It looks like previously we were using #E45D52 in night mode for color-link-red but that token does not exist in Codex. I have asked in Slack for clarity around what to do here.

Jdlrobson renamed this task from [Bug] Red links not compatible with night theme in both mobile and desktop to [Regression] Red links not compatible with night theme in both mobile and desktop.Tue, Apr 30, 11:53 PM
Jdlrobson changed the task status from Open to Stalled.Wed, May 1, 2:50 PM

This patch which fixes this issue has been merged and will be a part of the next Codex release.

Moving to sprint 3 since this should be testable Tuesday 7th.

Just a note the next Codex release is scheduled for Tuesday, May 14th.

ovasileva changed the task status from Stalled to Open.Mon, May 6, 5:23 PM

Estimating a temporary fix and unstalling

Change #1028564 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Fix red link color in dark mode

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

Change #1028564 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix red link color in dark mode

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

Edtadros subscribed.

Test Result - Beta

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

Test Artifact(s):

Test Steps

Test the following types of pages. Check for color contrast issues
No accessibility issues with red links
❌ AC1: A page without a talk page: https://en.m.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5721056271356895-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n?minervanightmode=1

screenshot 319.png (999×957 px, 147 KB)

❓ AC2: A page with red links in article: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181
screenshot 321.png (992×958 px, 424 KB)

I also tried dark mode which did fail. I wasn't sure why we are testing contrast on light mode in this step.
screenshot 322.png (993×945 px, 356 KB)

❌ AC3: A page with red link inside message box at top of article: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1
screenshot 323.png (1×954 px, 409 KB)

@DTorsani-WMF should there be special casing for the red links in the message boxes? I'm not sure if the remaining issue flagged by @Edtadros above relates to an issue with the Codex palette CdxMessage component or on our side? There seems to be an issue in both night and light theme...

@Jdlrobson It looks like this patch which fixes the issue with red link color tokens is set to be included in the next Codex release, scheduled to happen tomorrow.

The new Codex release should go out tomorrow (Wednesday) and we'll move this back to QA then.

Jdlrobson changed the task status from Open to Stalled.Thu, May 16, 10:04 PM
Jdlrobson added a subscriber: egardner.

This is not working correctly. Discussed in #talk-to-design-system-team and @egardner will create a follow up task. I'm stalling this one in mean time.

I've filed T365207 to represent the upstream issue in Codex. We may need to build in some custom logic into our design tokens tool (Style Dictionary) to get the correct behavior here. I'll start working on this tomorrow.

In the mean time, as a work-around you can set color-link-red manually to the appropriate color after you call the Codex dark mode mixin in Minerva (Vector appears to already to this). Once T365207 is completed, you should be able to remove these lines.

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

[mediawiki/skins/MinervaNeue@master] Temporarily define color-link-new in Minerva like in Vector

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

Jan: Let's apply a temporary fix here so we're not blocked on Codex updates.

Jdlrobson changed the task status from Stalled to Open.Fri, May 17, 4:53 PM

Change #1032837 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Temporarily define color-link-new in Minerva like in Vector

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBS
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Red Links Visibility on a Page Without a Talk Page in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5721056271356895-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n?minervanightmode=1.
  2. Ensure night mode is enabled.
  3. AC1 Confirm that the red links are visible and meet accessibility contrast standards.

screenshot 356.png (985×1 px, 273 KB)

Test Case 2: Red Links Visibility in an Article in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181.
  2. Ensure night mode is enabled.
  3. AC2 Confirm that the red links in the article are visible and meet accessibility contrast standards.

screenshot 358.png (985×1 px, 562 KB)

Test Case 3: Red Links Visibility in a Message Box in Night Mode

  1. Open the specific URL provided for testing: https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Hooded_skunk&oldid=585181&minervanightmode=1.
  2. Ensure night mode is enabled.
  3. AC3 Confirm that the red links inside the message box at the top of the article are visible and meet accessibility contrast standards.

screenshot 357.png (985×1 px, 563 KB)

Edtadros updated the task description. (Show Details)
ovasileva claimed this task.