Page MenuHomePhabricator

Address issues with usage of [bgcolor]
Closed, ResolvedPublic

Description

When using backgrounds without colors this creates issues in the new night mode as noted in https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis#Always_define_color_when_defining_background.

Various templates make use of bgcolor. To address this we will automatically detect these and automatically fix them.

QA

Visit https://fr.m.wikipedia.org/w/index.php?title=Cristiano_Ronaldo&oldid=212682659&minervanightmode=1#En_.C3.A9quipe_A

Actual: Unreadable text:

Screenshot 2024-02-23 at 12.53.45 PM.png (523×894 px, 78 KB)

Expected:
Readable text.

https://phabricator.wikimedia.org/T358385#9613994

QA Results - Prod

ACStatusDetails
1T358385#9613994

Event Timeline

This is fixed in production now thanks to T358164. It can be verified in production.

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: frwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

Visit https://fr.m.wikipedia.org/w/index.php?title=Cristiano_Ronaldo&oldid=212682659&minervanightmode=1#En_.C3.A9quipe_A

✅ AC1: Text should be readable.
The text in the table is readable, however there are some issues pertaining to Color Contrast and one unrelated issue in Beta.

screenshot 649.png (907×1 px, 257 KB)

screenshot 647.png (1×1 px, 529 KB)

screenshot 648.png (1×1 px, 519 KB)

screenshot 642.png (1×1 px, 377 KB)

Jdlrobson claimed this task.