Skip to content

Commit

Permalink
fix(icon-button): fixed primary visited link icon color (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtBlue authored Apr 29, 2024
1 parent e749b27 commit 292c8eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-months-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": patch
---

fix(icon-button): fixed primary visited link icon color
3 changes: 3 additions & 0 deletions dist/icon-button/icon-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ a.icon-link:visited:hover > svg,
a.icon-link:visited:focus > svg {
fill: var(--icon-button-icon-hover-foreground-color, var(--color-foreground-primary));
}
a.icon-link.icon-link--primary:visited > svg {
fill: var(--icon-button-icon-foreground-color, var(--color-foreground-on-accent));
}
button.icon-btn--badged,
a.icon-link--badged {
overflow: visible;
Expand Down
4 changes: 4 additions & 0 deletions src/less/icon-button/icon-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ a.icon-link:visited {
}
}

a.icon-link.icon-link--primary:visited > svg {
.fill-token(icon-button-icon-foreground-color, color-foreground-on-accent);
}

button.icon-btn--badged,
a.icon-link--badged {
overflow: visible;
Expand Down

0 comments on commit 292c8eb

Please sign in to comment.