Commit 4853c5b5 authored by Catalin Zalog's avatar Catalin Zalog Committed by XhmikosR
Browse files

feat: checks for `$grid-breakpoints` map list (#30609)


Co-authored-by: default avatarMartijn Cuppens <martijn.cuppens@gmail.com>
parent c4355e4a
Showing with 6 additions and 4 deletions
+6 -4
......@@ -23,10 +23,12 @@
// Starts at zero
// 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 #{$map-name} must start at 0, but starts at #{$first-value}.";
@if length($map) > 0 {
$values: map-values($map);
$first-value: nth($values, 1);
@if $first-value != 0 {
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
}
}
}
......
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