Skip to content

Commit

Permalink
Get rid of transparent bg colors for regular buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Oct 12, 2023
1 parent 4cb3daf commit 9e62b9a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

// scss-docs-start btn-variant-loops
.btn-primary {
@include button-variant($primary, $primary, $black, $active-background: transparent, $active-border: var(--#{$prefix}highlight-bg), $active-color: var(--#{$prefix}highlight-bg));
@include button-variant($primary, $primary, $black, $active-background: var(--#{$prefix}highlight-color), $active-border: var(--#{$prefix}highlight-bg), $active-color: var(--#{$prefix}highlight-bg));
}

.btn-success {
Expand All @@ -122,13 +122,11 @@
}

.btn-dark {
// TODO: highlight bg should be solid
@include button-variant($dark, $dark, $white, $hover-background: transparent, $hover-border: var(--#{$prefix}highlight-bg), $hover-color: var(--#{$prefix}highlight-bg));
@include button-variant($dark, $dark, $white, $hover-background: $white, $hover-border: $black, $hover-color: $black);
}

.btn-secondary {
// TODO: highlight bg should be solid
@include button-variant(var(--#{$prefix}highlight-bg), var(--#{$prefix}highlight-bg), var(--#{$prefix}highlight-color), $hover-background: transparent, $hover-border: var(--#{$prefix}highlight-bg), $hover-color: var(--#{$prefix}highlight-bg));
@include button-variant(var(--#{$prefix}highlight-bg), var(--#{$prefix}highlight-bg), var(--#{$prefix}highlight-color), $hover-background: var(--#{$prefix}highlight-color), $hover-border: var(--#{$prefix}highlight-bg), $hover-color: var(--#{$prefix}highlight-bg));
}

$hover-color: $yellow !default;
Expand Down

0 comments on commit 9e62b9a

Please sign in to comment.