Skip to content

Commit

Permalink
tools: check-theme: consider background-color too
Browse files Browse the repository at this point in the history
This is the precise property we want to check.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information
felipec committed Dec 31, 2021
1 parent 2e344f5 commit 817623f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/checkTheme.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 817623f

Please sign in to comment.