Page MenuHomePhabricator

Translate extension needs to import mediawiki.skin.variables to get night mode
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

NOTE: Blocks deployment on www.mediawiki.org accounting for 56% of all color contrast violations there.

I was surprised that translate extension was still not getting night mode and realized the root cause was a FIXME in the codebase that ties it to a static import of the CSS variables to provide support for LTS v1.42.

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/1007399/2/resources/css/ext.translate.tag.languages.less#b1

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

What happens?:

Screenshot 2024-02-29 at 4.11.01 PM.png (188×2 px, 48 KB)

What should have happened instead?:

Screenshot 2024-02-29 at 4.11.34 PM.png (178×1 px, 49 KB)

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

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

Event Timeline

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

[mediawiki/extensions/Translate@master] Address FIXME, support night mode

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

abi_ triaged this task as High priority.EditedMar 7 2024, 5:14 AM
abi_ set the point value for this task to 2.
abi_ subscribed.

Blocking from enabling night mode on MediaWiki.org.

Need to test patch with MW 1.40

Change 1007399 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Address TODO, address color contrast issues in night mode

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

abi_ updated Other Assignee, added: abi_.
Jdlrobson lowered the priority of this task from High to Medium.Mar 12 2024, 5:28 PM

Thank you language team for prioritizing this work!