From e42e6f01ff4b969b21cb47fa1bd4c146721761c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Wed, 8 Feb 2023 21:02:28 +0100 Subject: [PATCH] Fix lint + css-test --- scss/mixins/_color-mode.scss | 3 ++- scss/tests/mixins/_color-modes.test.scss | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scss/mixins/_color-mode.scss b/scss/mixins/_color-mode.scss index 822dbec1a7..898e99cd11 100644 --- a/scss/mixins/_color-mode.scss +++ b/scss/mixins/_color-mode.scss @@ -3,7 +3,8 @@ @if $color-mode-type == "media-query" { @if $root == true { @media (prefers-color-scheme: $mode) { - :root, :host { + :root, + :host { @content; } } diff --git a/scss/tests/mixins/_color-modes.test.scss b/scss/tests/mixins/_color-modes.test.scss index 2f6a7eaaaa..5d8f3f22bc 100644 --- a/scss/tests/mixins/_color-modes.test.scss +++ b/scss/tests/mixins/_color-modes.test.scss @@ -57,7 +57,8 @@ } } @media (prefers-color-scheme: dark) { - :root { + :root, + :host { --custom-color: #3a3ff8; } }