Page MenuHomePhabricator

Last modified bar (when page recently edited) has insufficient contrast in dark mode
Open, HighPublic1 Estimated Story PointsBUG REPORT

Description

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

  • Enable dark mode on mobile site - log in, click settings, click "advanced mode" to make the dark mode show up
  • Visit a page which has been recently edited
  • Scroll down to bottom of page

What happens?:

Text is #101418 on background #36c with a contrast ratio of 3.44:1, not sufficient for WCAG AA compliance

en.m.wikipedia.org_wiki_2024_Croatian_parliamentary_election(iPhone SE) (1).png (96×750 px, 10 KB)

Notes for first-time taskers

  • Click "mobile view" at the bottom of the page to get mobile site
  • you will need to install Extension:MobileFrontend to test this
  • The fix will live in the https://www.mediawiki.org/wiki/Skin:Minerva_Neue skin
  • Adding the notheme class to any element will make the element look the same in night and day themes - this should be used here.

Event Timeline

Same issue as T364117: color-inverted is not the correct color in the dark mode theme

We probably need to fix this by adding the notheme class to the last modified bar.

Jdlrobson added a subscriber: egardner.

Talking to @egardner this can be fixed by adding @color-inverted-fixed or adding notheme class to last modified bar - as it should look the same in day or night theme.

SToyofuku-WMF subscribed.

Picking this up a day early as our current sprint is pretty much wrapped up

Change #1032874 had a related patch set uploaded (by Stoyofuku-wmf; author: Stoyofuku-wmf):

[mediawiki/skins/MinervaNeue@master] Fix inverted text in (recently) last modified bar

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

Change #1032874 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Fix inverted text in (recently) last modified bar

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