From 87ac5ed25ad1406e63b73d94ef6edc50e533a166 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Fri, 11 Sep 2026 09:16:11 +0200 Subject: [PATCH] Fix header profile dropdown About link showing default anchor color The About item falls back to an when no onAbout handler is wired. The :visited fix only covered post-click state; the unvisited a:link pseudo-class still beat the .sc-profile-menu-item class in specificity, making the item look lighter/whiter than the button-based items until clicked once. Co-Authored-By: Claude Sonnet 5 --- packages/web-ui/src/lib/styles.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/web-ui/src/lib/styles.css b/packages/web-ui/src/lib/styles.css index 933aaee..bca66c2 100644 --- a/packages/web-ui/src/lib/styles.css +++ b/packages/web-ui/src/lib/styles.css @@ -189,8 +189,10 @@ } /* The About item falls back to an when no onAbout handler is wired, unlike the other - button-based items - without this, the browser's default a:visited color (higher specificity - than the class color above) makes it drift from the other dropdown items' color once clicked. */ + button-based items - without this, the browser's default a:link/a:visited color (higher + specificity than the class color above) makes it drift from the other dropdown items' color, + both before and after it's been clicked. */ +.sc-profile-menu-item:link, .sc-profile-menu-item:visited { color: var(--sc-muted-fg); }