]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
bring back button-color-alt
authorAndy Cochran <acochran@council.nyc.gov>
Wed, 2 Nov 2016 19:08:46 +0000 (15:08 -0400)
committerAndy Cochran <acochran@council.nyc.gov>
Thu, 17 Nov 2016 18:14:07 +0000 (13:14 -0500)
scss/components/_button.scss
scss/settings/_settings.scss

index a8388f8328334b192ca70b084c3cb13391b20271..4e222cf199f79510cefd3e5531571b1dde5e3405 100644 (file)
@@ -28,7 +28,11 @@ $button-background-hover: scale-color($button-background, $lightness: -15%) !def
 
 /// Font color for buttons.
 /// @type List
-$button-color: pick-best-color($button-background) !default;
+$button-color: $white !default;
+
+/// Alternative font color for buttons.
+/// @type List
+$button-color-alt: $black !default;
 
 /// Border radius for buttons, defaulted to global-radius.
 /// @type Number
@@ -110,7 +114,7 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau
   $background-hover-lightness: $button-background-hover-lightness
 ) {
   @if $color == auto {
-    $color: pick-best-color($base: $background, $colors: ($white, $black));
+    $color: pick-best-color($background, ($button-color, $button-color-alt));
   }
 
   @if $background-hover == auto {
index 5090677115a639e2b41ee11cf2e98d90a8d610e1..a7195a385934628c4e7f33d820a74ae8afe83e22 100644 (file)
@@ -240,7 +240,8 @@ $button-margin: 0 0 $global-margin 0;
 $button-fill: solid;
 $button-background: $primary-color;
 $button-background-hover: scale-color($button-background, $lightness: -15%);
-$button-color: pick-best-color($button-background);
+$button-color: $white;
+$button-color-alt: $black;
 $button-radius: $global-radius;
 $button-sizes: (
   tiny: 0.6rem,