Skip to content

Commit

Permalink
fix(link): prevent visited styles from applying to .post-tag
Browse files Browse the repository at this point in the history
Addresses issue reported in [Core integration PR](StackEng/StackOverflow#20322 (review))
  • Loading branch information
dancormier committed Aug 7, 2024
1 parent c848ce7 commit 878272d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/link/link.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ a {
&:visited {
// We're target these specific selectors to avoid affecting the visited state of stacks components
// not specified here. See for https://github.com/StackExchange/Stacks/pull/1740#discussion_r1698389312
&:not([class*="s-"]),
// TODO remove .post-tag reference once core no longer requires them
&:not([class*="s-"]):not(.post-tag),
&.s-link,
&.s-sidebarwidget--action,
&.s-user-card--link {
Expand Down

0 comments on commit 878272d

Please sign in to comment.