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 where visited a[dt-button] components had…
Browse files Browse the repository at this point in the history
… the wrong style.

Visited anchor tags that were represented as buttons were not styled correctly in dark mode.
The necessary selectors have been added to mitigate this problem.

Fixes #1202
  • Loading branch information
tomheller committed Jun 26, 2020
1 parent 0233e5e commit 6f8c9a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/barista-components/button/src/_button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ a.dt-button-primary:visited {

.dt-theme-dark {
.dt-button-primary,
a.dt-button-primary:visited,
.dt-button-primary:hover:not([disabled]),
.dt-button-primary:active:not([disabled]) {
border-color: #ffffff;
Expand Down Expand Up @@ -115,7 +116,8 @@ a.dt-button-secondary:visited {

.dt-theme-dark {
.dt-button-secondary,
.dt-button-secondary[disabled] {
.dt-button-secondary[disabled],
a.dt-button-secondary:visited {
background: transparent;
color: #ffffff;

Expand Down Expand Up @@ -148,10 +150,12 @@ a.dt-button-secondary:visited {
}
}
.dt-button-secondary,
a.dt-button-secondary:visited,
.dt-button-secondary:hover:not([disabled]) {
border-color: #ffffff;
color: $gray-100;
}
a.dt-button-secondary:visited,
.dt-button-secondary:active:not([disabled]) {
border-color: #ffffff;
color: #ffffff;
Expand Down

0 comments on commit 6f8c9a7

Please sign in to comment.