Skip to content

Commit 0f91977

Browse files
committed
feat: checks for $grid-breakpoints map list
1 parent 7787f64 commit 0f91977

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scss/_functions.scss

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@
2323
// Starts at zero
2424
// Used to ensure the min-width of the lowest breakpoint starts at 0.
2525
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
26-
$values: map-values($map);
27-
$first-value: nth($values, 1);
28-
@if $first-value != 0 {
29-
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
26+
@if length($map) > 0 {
27+
$values: map-values($map);
28+
$first-value: nth($values, 1);
29+
@if $first-value != 0 {
30+
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
31+
}
3032
}
3133
}
3234

0 commit comments

Comments
 (0)