Skip to content

Commit

Permalink
fix(button): add destructive red to borderless (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtBlue committed Aug 9, 2023
1 parent 90c1237 commit 9e0691a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ button.btn--borderless[aria-disabled="true"],
a.fake-btn--borderless[aria-disabled="true"] {
border-color: transparent;
}
button.btn--borderless.btn--destructive,
a.fake-btn--borderless.btn--destructive {
color: var(--btn-secondary-destructive-foreground-color, var(--color-foreground-attention));
}
button.btn--slim,
a.fake-btn--slim {
height: 40px;
Expand Down
5 changes: 5 additions & 0 deletions src/less/button/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ a.fake-btn--borderless[aria-disabled="true"] {
border-color: transparent;
}

button.btn--borderless.btn--destructive,
a.fake-btn--borderless.btn--destructive {
.color-token(btn-secondary-destructive-foreground-color, color-foreground-attention);
}

button.btn--slim,
a.fake-btn--slim {
height: @button-height-regular;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default { title: "Skin/Button/Destructive/Borderless" };

export const base = () =>
'<button class="btn btn--borderless btn--destructive">Destructive Borderless Button</button>';

0 comments on commit 9e0691a

Please sign in to comment.