Skip to content

Commit

Permalink
Fix swirl-button colors for plain/primary variant (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqrrl authored Jan 7, 2025
1 parent edb87b0 commit deda36d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/cold-dancers-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@getflip/swirl-components": patch
"@getflip/swirl-components-angular": patch
"@getflip/swirl-components-react": patch
---

Fix hover and active state swirl-button colors for plain/primary variant.
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,19 @@
&.button--intent-primary {
color: var(--s-interactive-primary-default);

&:hover {
color: var(--s-interactive-primary-default);
&:hover:not(:disabled):not(.button--disabled) {
color: var(--s-interactive-primary-hovered);

& .button__icon {
color: var(--s-interactive-primary-default);
color: var(--s-interactive-primary-hovered);
}
}

&:active {
color: var(--s-interactive-primary-hovered);
&:active:not(:disabled):not(.button--disabled) {
color: var(--s-interactive-primary-pressed);

& .button__icon {
color: var(--s-interactive-primary-hovered);
color: var(--s-interactive-primary-pressed);
}
}

Expand Down

0 comments on commit deda36d

Please sign in to comment.