Skip to content

Commit

Permalink
fix(breakpoint): revert breakpoint-between removal of breakpoints map
Browse files Browse the repository at this point in the history
This is reverting from the PR merge carbon-design-system#8346, which breaks the mixin from
allowing entering any breakpoint names (sm, md, etc).
  • Loading branch information
jeffchew committed Jul 2, 2021
1 parent 8ecc657 commit d78ade2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/layout/scss/_breakpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ $carbon--grid-breakpoints: (
$max: if($is-number-upper, $upper, map-get($breakpoints, $upper));

@if $min and $max {
$min-width: if(not $is-number-lower and $min, map-get($min, width), $min);
$max-width: if(not $is-number-upper and $max, map-get($max, width), $max);
$min-width: if(
not $is-number-lower and $min,
map-get($min, width + 0.02),
Expand Down

0 comments on commit d78ade2

Please sign in to comment.