]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix SASS depreciation warning 8162/head
authorkarland <anders-betrachtet@online.de>
Sun, 14 Feb 2016 20:21:12 +0000 (21:21 +0100)
committerkarland <anders-betrachtet@online.de>
Sun, 14 Feb 2016 20:21:12 +0000 (21:21 +0100)
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

index 2ec69196517677590c86b5ed115428f4f574f6bb..f9a6c12663c766ec7700d9c4a549f2021329821c 100644 (file)
@@ -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);
   }