From 4bffea63353ed8db4407a784dddf91f847b240d9 Mon Sep 17 00:00:00 2001 From: karland Date: Sun, 14 Feb 2016 21:21:12 +0100 Subject: [PATCH] Fix SASS depreciation warning SASS is generatng the following depreciation warning: DEPRECATION WARNING on line 25 of /foundation/components/_visibility.scss: The result of `0px == 0` will be `false` in future releases of Sass. Unitless numbers will no longer be equal to the same numbers with units. This PR fixes the issue --- scss/components/_visibility.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/components/_visibility.scss b/scss/components/_visibility.scss index 2ec691965..f9a6c1266 100644 --- a/scss/components/_visibility.scss +++ b/scss/components/_visibility.scss @@ -22,7 +22,7 @@ // more often than not this will be correct, just one time round the loop it won't so set in scope here $lower-bound: -zf-bp-to-em($lower-bound-size) - (1/16); // test actual lower-bound-size, if 0 set it to 0em - @if $lower-bound-size == 0 { + @if strip-unit($lower-bound-size) == 0 { $lower-bound: -zf-bp-to-em($lower-bound-size); } -- 2.47.2