From 817623f53ab8031ed23ec93d8633a2e321143cc4 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 30 Dec 2021 19:13:29 -0600 Subject: [PATCH] tools: check-theme: consider background-color too This is the precise property we want to check. Signed-off-by: Felipe Contreras --- tools/checkTheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkTheme.js b/tools/checkTheme.js index bd2587e6d0..2a1a3a9cf0 100755 --- a/tools/checkTheme.js +++ b/tools/checkTheme.js @@ -193,7 +193,7 @@ class CSSRule { constructor(rule, body) { this.rule = rule; if (rule.declarations) { - this.bg = rule.declarations.find(x => x.property =="background")?.value; + this.bg = rule.declarations.find(x => x.property =="background" || x.property =="background-color")?.value; this.fg = rule.declarations.find(x => x.property =="color")?.value; if (this.bg) {