$background: $primary-color,
$color: $button-color
) {
+ @if $color == auto {
+ $color: color-pick-contrast($background, ($button-color, $button-color-alt));
+ }
+
opacity: $button-opacity-disabled;
cursor: not-allowed;
&, &:hover, &:focus {
background-color: $background;
-
- // If color is set to `auto`, the function `color-pick-contrast` automatically generates a color based on the background color
- @if $color == auto {
- $color: color-pick-contrast($background, ($button-color, $button-color-alt));
- }
-
color: $color;
}
}