Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(button): Fixes an issue with secondary theme hover and active state
Browse files Browse the repository at this point in the history
According to the UX guidelines hover/active states should not enforce strict background colors, but just some opacity.
  • Loading branch information
JanuszLis authored and lukasholzer committed Aug 27, 2020
1 parent 50e0bcc commit a602f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/barista-components/button/src/_button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ a.dt-button-secondary:visited {
}
}
.dt-button-secondary:hover:not([disabled]) {
background: $gray-100;
background: rgba(255, 255, 255, 0.2);
border-color: var(--dt-button-hover-color);
color: var(--dt-button-hover-color);

Expand All @@ -96,7 +96,7 @@ a.dt-button-secondary:visited {
}
}
.dt-button-secondary:active:not([disabled]) {
background: $gray-100;
background: rgba(255, 255, 255, 0.2);
border-color: var(--dt-button-active-color);
color: var(--dt-button-active-color);

Expand Down

0 comments on commit a602f6b

Please sign in to comment.