Commit 3ffe4f82 authored by ysds's avatar ysds Committed by Mark Otto
Browse files

Update themeing docs for more clearly how to remove from map (#25589)

* Add note about insert position of "map-remove"

* Use optional keys instead of required keys
parent 37ed1d08
4 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 13 additions and 2 deletions
+13 -2
...@@ -120,10 +120,21 @@ $theme-colors: ( ...@@ -120,10 +120,21 @@ $theme-colors: (
#### Remove from map #### Remove from map
To remove colors from `$theme-colors`, or any other map, use `map-remove`: To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert it between our requirements and options:
{% highlight scss %} {% highlight scss %}
$theme-colors: map-remove($theme-colors, "success", "info", "danger"); // Required
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins";
$theme-colors: map-remove($theme-colors, "info", "light", "dark");
// Optional
@import "node_modules/bootstrap/scss/root";
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/type";
...
{% endhighlight %} {% endhighlight %}
#### Required keys #### Required keys
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment