Page MenuHomePhabricator

Minerva/MobileFrontend icons not using embedded data URI rules should be compatible with night mode
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

User story

As a reader, I want all icons to appear in night mode when required, so that I can navigate properly

Background

For performance reasons we use image URLs rather than embedded images for URL. This means they can't be colored in the same way as other icons.

For now, we will use an invert. We will later do a spike to explore better more maintainable options.

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

What happens?:
All icons are gray on black:

Screenshot 2024-02-06 at 3.09.02 PM.png (1×1 px, 183 KB)

What should have happened instead?:

Icons should appear white or off-white.

Software version (skip for WMF-hosted wikis like Wikipedia):
The following CSS should be applied in night mode (make sure to workshop this with Justin!)

Proposed fix: Add the skin-invert class to all icons that do not use the Codex mixin.

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

QA

Check icons on following pageS:

QA Results - Beta

QA Results - Prod

Event Timeline

Jdlrobson renamed this task from Minerva icons should be compatible with night mode to Minerva logos and icons should be compatible with night mode.Feb 6 2024, 11:24 PM
Jdlrobson renamed this task from Minerva logos and icons should be compatible with night mode to Minerva icons should be compatible with night mode.
Jdlrobson updated the task description. (Show Details)
Jdlrobson updated the task description. (Show Details)
Jdlrobson added a subscriber: JScherer-WMF.
Jdlrobson lowered the priority of this task from High to Medium.Feb 8 2024, 7:14 PM

The invert approach should be sufficient for our needs for now, but I think it'll be worth investigating if we can use the mask-image + background-color approach used in the last-edited toolbar for icons more broadly.

Screenshot 2024-02-12 at 2.07.18 PM.png (374×1 px, 125 KB)

That would allow us to use the CSS variable colors for the night mode version of the icons.
(I'll set up a spike around this).

Jdlrobson renamed this task from Minerva icons should be compatible with night mode to Minerva icons not using embedded data URI rules should be compatible with night mode.Feb 15 2024, 6:24 PM
Jdlrobson updated the task description. (Show Details)
ovasileva raised the priority of this task from Medium to High.Feb 15 2024, 6:29 PM
ovasileva set the point value for this task to 2.
Jdlrobson renamed this task from Minerva icons not using embedded data URI rules should be compatible with night mode to Minerva/MobileFrontend icons not using embedded data URI rules should be compatible with night mode.Feb 23 2024, 6:51 PM
Jdlrobson updated the task description. (Show Details)

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

[mediawiki/skins/MinervaNeue@master] Separate image inversion from widget inversion

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

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

[mediawiki/skins/MinervaNeue@master] Invert all icons in UI that use background-image

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

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

[mediawiki/extensions/MobileFrontend@master] Invert user placeholder icon in night mode

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

Change 1006977 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Separate image inversion from widget inversion

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

Change 1006980 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Invert user placeholder icon in night mode

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

Change 1006978 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Invert all icons in UI that use background-image

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

Jdlrobson lowered the priority of this task from High to Medium.Mar 5 2024, 1:28 AM

Test Result - Beta

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

Test Artifact(s):

QA Steps

QA
Check icons on following pageS:

✅ AC1: Hamburger menu

screenshot 665.png (731×1 px, 151 KB)

✅ AC2: Page actions under article title (edit pencil)

screenshot 667.png (729×1 px, 265 KB)

✅ AC3: Section headings

screenshot 666.png (865×1 px, 260 KB)

✅ AC4: User placeholder icon on https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=User:User-0.5677663645738522-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n

screenshot 664.png (729×1 px, 151 KB)

❌ AC5: Search icon
When you click in the search field the size and color of the magnifying glass changes.

screenshot 669.png (207×605 px, 8 KB)

screenshot 668.png (306×720 px, 43 KB)

Looks good, resolving.

Test Result - Prod

Status: ✅ Pass
Environment: enwiki, testwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

QA
Check icons on following pageS:

✅ AC1: Hamburger menu

screenshot 2.png (1×1 px, 531 KB)

screenshot 1.png (1×1 px, 517 KB)

✅ AC2: Page actions under article title (edit pencil)

screenshot 3.png (1×1 px, 625 KB)

✅ AC3: Section headings

screenshot 4.png (1×1 px, 364 KB)

✅ AC4: User placeholder icon on https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=User:User-0.5677663645738522-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n

screenshot 5.png (1×1 px, 172 KB)

✅ AC5: Search icon

screenshot 6.png (1×1 px, 123 KB)