]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix usage of $active-color in mixin 6036/head
authorJonathan Lepolt <lepolt@batterii.com>
Fri, 14 Nov 2014 13:55:47 +0000 (08:55 -0500)
committerJonathan Lepolt <lepolt@batterii.com>
Fri, 14 Nov 2014 13:55:47 +0000 (08:55 -0500)
scss/foundation/components/_switches.scss

index 6ae9d27518ae9303ebd3123de87dab8a74788a4b..f8fd2f67b69d5f20acce5d40c79c9c16169cfa3d 100644 (file)
@@ -143,6 +143,7 @@ $switch-active-color: $primary-color !default;
 // $base-style - Apply base styles? Default: true.
 @mixin switch-style(
   $paddle-bg:$switch-paddle-bg,
+  $active-color:$switch-active-color,
   $radius:false,
   $base-style:true) {
 
@@ -158,7 +159,7 @@ $switch-active-color: $primary-color !default;
     }
 
     input:checked + label {
-      background: $switch-active-color;
+      background: $active-color;
     }
   }
 
@@ -201,7 +202,7 @@ $switch-active-color: $primary-color !default;
   $base-style:true) {
     @include switch-base($transition-speed, $transition-ease);
     @include switch-size($height);
-    @include switch-style($paddle-bg, $radius, $base-style);
+    @include switch-style($paddle-bg, $active-color, $radius, $base-style);
 }
 
 @include exports("switch") {