Skip to content

Commit fad49e7

Browse files
romanlexmdo
authored andcommitted
Ignore percentage values for compare in maps
1 parent 97eea3b commit fad49e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scss/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$prev-key: null;
99
$prev-num: null;
1010
@each $key, $num in $map {
11-
@if $prev-num == null {
11+
@if $prev-num == null or unit($num) == "%" {
1212
// Do nothing
1313
} @else if not comparable($prev-num, $num) {
1414
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";

0 commit comments

Comments
 (0)