Skip to content

Commit

Permalink
Ignore percentage values for compare in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlex authored and mdo committed Sep 2, 2018
1 parent 97eea3b commit fad49e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$prev-key: null;
$prev-num: null;
@each $key, $num in $map {
@if $prev-num == null {
@if $prev-num == null or unit($num) == "%" {
// Do nothing
} @else if not comparable($prev-num, $num) {
@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}' !";
Expand Down

0 comments on commit fad49e7

Please sign in to comment.