From 878272d1df7e546a08cbc0967eb9f665c7d28019 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Wed, 7 Aug 2024 15:15:10 -0400 Subject: [PATCH] fix(link): prevent visited styles from applying to .post-tag Addresses issue reported in [Core integration PR](https://github.com/StackEng/StackOverflow/pull/20322#pullrequestreview-2225519712) --- lib/components/link/link.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/link/link.less b/lib/components/link/link.less index b5a28fff32..e5498570b5 100644 --- a/lib/components/link/link.less +++ b/lib/components/link/link.less @@ -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 {