Page MenuHomePhabricator

Inputbox tag only generates background: CSS line, and not corresponding color: line..
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
A 'Background color inline style rule exists without a corresponding text color' lint is reported as arising inside the inputbox tag.

What should have happened instead?:
The inputbox pusedo-tag should be generating an appropriate 'color:' to pair with the background. (typicaly:'color:inherit') if a foreground color is not supplied as a parameter.

Looking at the code in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/InputBox/+/refs/heads/master/includes/InputBox.php (around line 822) this should be a relatively simple patch

QA Results - PROD

ACStatusDetails
1Pass per T369619#9993259

Event Timeline

Jdlrobson added subscribers: Catrope, Jdlrobson.

Thanks for the report. @Catrope if I post a patch could you review? Seems like this would cause lots of false positives in our LintErrors category...

Jdlrobson moved this task from Incoming to Groomed on the Web-Team-Backlog board.

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

[mediawiki/extensions/InputBox@master] InputBox should not trigger lint warnings

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

Change #1053799 merged by jenkins-bot:

[mediawiki/extensions/InputBox@master] InputBox should not trigger lint warnings

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

Jdlrobson claimed this task.

I can verify this in production once I get pinged by Edward as part of release QA.

@Jdlrobson Is this what you are looking for as seen in gif and screenshot?

Test Result - PROD

Status: ❓NMI
Environment: PROD
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

2024-07-17_12-00-54.mp4.gif (894×1 px, 1 MB)
2024-07-17_11-51-27.png (1×2 px, 795 KB)

@GMikesell-WMF I can verify this. The URL matches no results, so that's what we're verifying here.