diff options
author | Zachary Welch <zwelch154@gmail.com> | 2019-02-07 12:19:38 +0300 |
---|---|---|
committer | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-02-07 12:19:38 +0300 |
commit | b647dd056597903ba35e3eaf07c957d4220ef16a (patch) | |
tree | 64b5570e4ddba6dc1b73528f3738a0a1218e86d0 | |
parent | eb1313d2136b7381f895fe95fe2f5a082cac2dce (diff) |
Add map-name param to _assert-starts-at-zero (#24986)
* Add map-name param to _assert-starts-at-zero
* Set default value for backwards compatibility
-rw-r--r-- | scss/_functions.scss | 6 | ||||
-rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index 77b8c8f104..d2cc91d57a 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -21,12 +21,12 @@ } // Starts at zero -// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0. -@mixin _assert-starts-at-zero($map) { +// Used to ensure the min-width of the lowest breakpoint starts at 0. +@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") { $values: map-values($map); $first-value: nth($values, 1); @if $first-value != 0 { - @warn "First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}."; + @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}."; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index bbd92a91aa..74b8617af7 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -196,7 +196,7 @@ $grid-breakpoints: ( ) !default; @include _assert-ascending($grid-breakpoints, "$grid-breakpoints"); -@include _assert-starts-at-zero($grid-breakpoints); +@include _assert-starts-at-zero($grid-breakpoints, "$grid-breakpoints"); // Grid containers |