]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix 'Remove from map' Sass description
authorJulien Déramond <julien.deramond@orange.com>
Thu, 9 Jun 2022 16:01:20 +0000 (18:01 +0200)
committerMark Otto <otto@github.com>
Mon, 11 Jul 2022 07:59:42 +0000 (00:59 -0700)
site/content/docs/5.2/customize/sass.md

index 6215d1032dea8055860a3c96824049ae3f2602ba..0fd90bc370f3603935950af9dae547c31a82b17f 100644 (file)
@@ -160,18 +160,19 @@ $theme-colors: map-merge($theme-colors, $custom-colors);
 
 ### Remove from map
 
-To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert it between our requirements and options:
+To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert `$theme-colors` between our requirements just after its definition in `variables` and before its usage in `maps`:
 
 ```scss
 // Required
 @import "../node_modules/bootstrap/scss/functions";
 @import "../node_modules/bootstrap/scss/variables";
+
+$theme-colors: map-remove($theme-colors, "info", "light", "dark");
+
 @import "../node_modules/bootstrap/scss/maps";
 @import "../node_modules/bootstrap/scss/mixins";
 @import "../node_modules/bootstrap/scss/root";
 
-$theme-colors: map-remove($theme-colors, "info", "light", "dark");
-
 // Optional
 @import "../node_modules/bootstrap/scss/reboot";
 @import "../node_modules/bootstrap/scss/type";