Skip to content

Commit

Permalink
fix(breakpoint): fixing calculation to have +/- 0.02 outside of map-g…
Browse files Browse the repository at this point in the history
…et (#9102)

* fix(breakpoint): revert breakpoint-between removal of breakpoints map

This is reverting from the PR merge #8346, which breaks the mixin from
allowing entering any breakpoint names (sm, md, etc).

* fix(breakpoint): fixing calculation to have +/- 0.02 outside of map-get

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
jeffchew and kodiakhq[bot] committed Jul 6, 2021
1 parent 6e405a2 commit 3c09abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/layout/scss/_breakpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ $carbon--grid-breakpoints: (
@if $min and $max {
$min-width: if(
not $is-number-lower and $min,
map-get($min, width + 0.02),
map-get($min, width) + 0.02,
$min
);
$max-width: if(
not $is-number-upper and $max,
map-get($max, width - 0.02),
map-get($max, width) - 0.02,
$max
);
@media (min-width: $min-width) and (max-width: $max-width) {
Expand Down

0 comments on commit 3c09abf

Please sign in to comment.