From 587e89f11b4973b6dceb47a33ab8a94798c6652a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 14 Nov 2023 08:01:29 +0100 Subject: [PATCH] Fix Sass compilation breaking change in v5.3 (#39380) --- scss/_variables.scss | 2 ++ scss/tests/mixins/_auto-import-of-variables-dark.test.scss | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 scss/tests/mixins/_auto-import-of-variables-dark.test.scss diff --git a/scss/_variables.scss b/scss/_variables.scss index 5429c017e9..2d70310a51 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -1745,3 +1745,5 @@ $kbd-bg: var(--#{$prefix}body-color) !default; $nested-kbd-font-weight: null !default; // Deprecated in v5.2.0, removing in v6 $pre-color: null !default; + +@import "variables-dark"; // TODO: can be removed safely in v6, only here to avoid breaking changes in v5.3 diff --git a/scss/tests/mixins/_auto-import-of-variables-dark.test.scss b/scss/tests/mixins/_auto-import-of-variables-dark.test.scss new file mode 100644 index 0000000000..f08ae58752 --- /dev/null +++ b/scss/tests/mixins/_auto-import-of-variables-dark.test.scss @@ -0,0 +1,7 @@ +// TODO: this file can be removed safely in v6 when `@import "variables-dark"` will be removed at the end of _variables.scss + +@import "../../functions"; +@import "../../variables"; +// Voluntarily not importing _variables-dark.scss +@import "../../maps"; +@import "../../mixins";