Skip to content

Commit

Permalink
feat(design): set the base stroked and flat button text color to curr…
Browse files Browse the repository at this point in the history
…entColor (#2500)
  • Loading branch information
xelaint committed Jul 18, 2023
1 parent e26ab24 commit 939a655
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libs/design/src/atoms/button/button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
.daff-stroked-button {
background: transparent;
border: 1px solid theming.daff-illuminate($base, $gray, 5);
color: theming.daff-text-contrast($base);
color: currentColor;

&:after {
background: theming.daff-illuminate($base, $gray, 2);
Expand Down Expand Up @@ -406,7 +406,7 @@
}

.daff-flat-button {
color: theming.daff-text-contrast($base);
color: currentColor;

&:after {
background-color: theming.daff-illuminate($base, $gray, 2);
Expand All @@ -418,6 +418,11 @@
}
}

&:hover,
&:active {
color: theming.daff-text-contrast(theming.daff-illuminate($base, $gray, 2));
}

&.daff-primary {
@include flat.daff-flat-button-theme-variant(
theming.daff-color($primary),
Expand Down

0 comments on commit 939a655

Please sign in to comment.