From: Kevin Ball Date: Wed, 31 May 2017 21:26:41 +0000 (-0700) Subject: Fix -zf-get-bp-value to still support number case but not break in case of nonsense... X-Git-Tag: v6.4.0-rc1~9^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2faa34593bdf8150f0419198acc8fc5463eacc7d;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix -zf-get-bp-value to still support number case but not break in case of nonsense string --- diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index 375df40db..63e7d70c4 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -284,7 +284,11 @@ $breakpoint-classes: (small medium large) !default; // Check if the breakpoint name exists globally @if not map-has-key($breakpoints, $value) { - $value: -zf-closest-named-breakpoint($value); + @if type-of($value) == 'number' { + $value: -zf-closest-named-breakpoint($value); + } @else { + @return null; + } } // Check if the breakpoint name exists in the local config map @else if map-has-key($map, $value) {