Skip to content

Commit

Permalink
fix(breakpoint): update in between breakpoint (#8346)
Browse files Browse the repository at this point in the history
Co-authored-by: TJ Egan <[email protected]>
  • Loading branch information
andreancardona and tw15egan authored Apr 10, 2021
1 parent 0597f1d commit 5355ab6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/layout/scss/_breakpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,16 @@ $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),
$min
);
$max-width: if(
not $is-number-upper and $max,
map-get($max, width - 0.02),
$max
);
@media (min-width: $min-width) and (max-width: $max-width) {
@content;
}
Expand Down

0 comments on commit 5355ab6

Please sign in to comment.