]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added button-color-alt variable to mixin 8031/head
authorAbraham Castro <cucharadepalo@users.noreply.github.com>
Thu, 28 Jan 2016 18:17:29 +0000 (19:17 +0100)
committerAbraham Castro <cucharadepalo@users.noreply.github.com>
Thu, 28 Jan 2016 18:17:29 +0000 (19:17 +0100)
The alternative font color for buttons wasn't working because it wasn't present in the button-style mixin

scss/components/_button.scss

index 67a006042e57d7740c9130fa8962c7c8263394f3..439d29173d68b8298c21d6a98cb2ed1378dd4a60 100644 (file)
@@ -99,7 +99,7 @@ $button-opacity-disabled: 0.25 !default;
   $color: $button-color
 ) {
   @if $color == auto {
-    $color: foreground($background);
+    $color: foreground($background, $button-color-alt, $button-color);
   }
 
   @if $background-hover == auto {
@@ -203,7 +203,7 @@ $button-opacity-disabled: 0.25 !default;
     @each $name, $color in $foundation-colors {
       @if $button-fill != hollow {
         &.#{$name} {
-          @include button-style($color, auto);
+          @include button-style($color, auto, auto);
         }
       }
       @else {