Skip to content

Commit 05218e9

Browse files
authored
Fix issue where global <a> styles applied to some native starlight styles. (#4795)
1 parent 2be03f8 commit 05218e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs-starlight/src/styles/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,14 @@
398398
}
399399

400400
/* Global link styling - apply Starlight's link styles everywhere except in sl-markdown-content */
401-
a:not(.sl-markdown-content a, .primary-button, .secondary-button) {
401+
a:not(.sl-markdown-content a, #starlight__sidebar a, starlight-toc a, .primary-button, .secondary-button) {
402402
color: var(--color-accent-1);
403403
text-decoration: underline;
404404
text-decoration-color: var(--color-accent-1);
405405
transition: color 0.2s ease, text-decoration-color 0.2s ease;
406406
}
407407

408-
a:not(.sl-markdown-content a, .primary-button, .secondary-button):hover {
408+
a:not(.sl-markdown-content a, #starlight__sidebar a, starlight-toc a, .primary-button, .secondary-button):hover {
409409
color: var(--sl-color-accent);
410410
text-decoration-color: var(--sl-color-accent);
411411
}

0 commit comments

Comments
 (0)