Fix header profile dropdown About link showing default anchor color
The About item falls back to an <a> 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 <noreply@anthropic.com>
This commit is contained in:
1 parent
f00f9f3c03
commit
87ac5ed25a
1 file changed
+4
-2
@@ -189,8 +189,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The About item falls back to an <a> when no onAbout handler is wired, unlike the other
|
/* The About item falls back to an <a> when no onAbout handler is wired, unlike the other
|
||||||
button-based items - without this, the browser's default a:visited color (higher specificity
|
button-based items - without this, the browser's default a:link/a:visited color (higher
|
||||||
than the class color above) makes it drift from the other dropdown items' color once clicked. */
|
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 {
|
.sc-profile-menu-item:visited {
|
||||||
color: var(--sc-muted-fg);
|
color: var(--sc-muted-fg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user