mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-27 16:39:59 +00:00
InputBox should not trigger lint warnings
Bug: T369619 Change-Id: I0af233bfb49dd1da9eeee8cc324e91e24200bff5
This commit is contained in:
parent
3a6286121e
commit
4fb8d2d050
|
@ -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 '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue