}
/// Adds disabled styles to a button by fading the element, reseting the cursor, and disabling pointer events.
-@mixin button-disabled {
+@mixin button-disabled($color: $primary-color) {
opacity: $button-opacity-disabled;
cursor: not-allowed;
&:hover, &:focus {
- background-color: $button-background;
+ background-color: $color;
color: $button-color;
}
}
&.disabled,
&[disabled] {
@include button-disabled;
+
+ @each $name, $color in $foundation-palette {
+ &.#{$name} {
+ @include button-disabled($color);
+ }
+ }
}
// Dropdown arrow