From 5de10e3f48ba467c74294b62be55c0075949059d Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Wed, 14 Aug 2024 17:23:35 -0400 Subject: [PATCH] fix(link): don't apply visited styles to .badge, .badge-tag (#1803) Partially addresses https://meta.stackexchange.com/questions/402150/after-this-was-announced-i-can-t-easily-see-the-badges-i-earn --- lib/components/link/link.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/link/link.less b/lib/components/link/link.less index e5498570b5..95b0207ed6 100644 --- a/lib/components/link/link.less +++ b/lib/components/link/link.less @@ -4,8 +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 - // TODO remove .post-tag reference once core no longer requires them - &:not([class*="s-"]):not(.post-tag), + // TODO remove .post-tag, .badge, .badge-tag reference once core no longer requires them + &:not([class*="s-"]):not(.post-tag):not(.badge):not(.badge-tag), &.s-link, &.s-sidebarwidget--action, &.s-user-card--link {