InputBox should not trigger lint warnings

Bug: T369619
Change-Id: I0af233bfb49dd1da9eeee8cc324e91e24200bff5
This commit is contained in:
Jon Robson 2024-07-11 15:13:37 -07:00
parent 3a6286121e
commit 4fb8d2d050

View file

@ -821,7 +821,11 @@ REGEX;
private function bgColorStyle() {
if ( $this->mBGColor !== 'transparent' ) {
return 'background-color: ' . $this->mBGColor . ';';
// Define color to avoid flagging linting warnings.
// https://phabricator.wikimedia.org/T369619
// Editor is assumed to know what they are doing here,
// and choosing a color compatible with dark and light themes...
return 'background-color: ' . $this->mBGColor . '; color: inherit;';
}
return '';
}