]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
prevent hover/focus effects on disabled buttons 8650/head
authorAndy Cochran <acochran@council.nyc.gov>
Thu, 21 Apr 2016 19:16:54 +0000 (15:16 -0400)
committerAndy Cochran <acochran@council.nyc.gov>
Thu, 21 Apr 2016 19:16:54 +0000 (15:16 -0400)
scss/components/_button.scss

index 9675abb7b6acd8e660b10ccf5a03b5e84e461abc..ce558e558e3cc084b9cf55f161aa547b8cae45a6 100644 (file)
@@ -139,6 +139,10 @@ $button-opacity-disabled: 0.25 !default;
 @mixin button-disabled {
   opacity: $button-opacity-disabled;
   cursor: not-allowed;
+  &:hover, &:focus {
+    background-color: $background;
+    color: $color;
+  }
 }
 
 /// Adds a dropdown arrow to a button.