]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix Sass compilation breaking change in v5.3 (#39380)
authorJulien Déramond <juderamond@gmail.com>
Tue, 14 Nov 2023 07:01:29 +0000 (08:01 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Nov 2023 07:01:29 +0000 (08:01 +0100)
scss/_variables.scss
scss/tests/mixins/_auto-import-of-variables-dark.test.scss [new file with mode: 0644]

index 5429c017e9654901dcf8184b60884ad1f051c23a..2d70310a516d401901b9a0e09d9f28234be3bc4f 100644 (file)
@@ -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 (file)
index 0000000..f08ae58
--- /dev/null
@@ -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";