Skip to content

Commit

Permalink
Update themeing docs for more clearly how to remove from map (twbs#25589
Browse files Browse the repository at this point in the history
)

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

* Use optional keys instead of required keys
  • Loading branch information
ysds authored and mdo committed Feb 11, 2018
1 parent 37ed1d0 commit 3ffe4f8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/4.0/getting-started/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,21 @@ $theme-colors: (

#### 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 %}
$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 %}

#### Required keys
Expand Down

0 comments on commit 3ffe4f8

Please sign in to comment.