Skip to content

Commit 7576743

Browse files
committed
Set $current-bp and $counter in global scope
Due to sass/sass#1474, functions such as fluid() fail, returning NaN or Infinity because the global $current-bp var is not set.
1 parent da67f78 commit 7576743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

breakpoint/_core.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ $first-breakpoint: append($first-breakpoint, ());
3030
// normalize quotes
3131
$label: quote(unquote($label));
3232

33-
$counter: $counter + 1;
33+
$counter: $counter + 1 !global;
3434

3535
// push label to label list names = push(names, myname)
3636
$first-breakpoint: append($first-breakpoint, $label, comma);
3737

3838
}
3939

4040
// set current breakpoint for fluid function
41-
$current-bp: $min;
41+
$current-bp: $min !global;
4242

4343
// min width mq
4444
@if ($min and $max == false) {

0 commit comments

Comments
 (0)