From d78ade2b20e222cfd0aad8dc3e2561e07dc6dc34 Mon Sep 17 00:00:00 2001 From: Jeff Chew Date: Fri, 2 Jul 2021 10:03:15 -0400 Subject: [PATCH] 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). --- packages/layout/scss/_breakpoint.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/layout/scss/_breakpoint.scss b/packages/layout/scss/_breakpoint.scss index 625f7506e24e..6750086e3def 100644 --- a/packages/layout/scss/_breakpoint.scss +++ b/packages/layout/scss/_breakpoint.scss @@ -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),