Skip to content

Commit a28a8c1

Browse files
authored
Fix 3rd level sidebar not highlighting (#141)
1 parent a3c320a commit a28a8c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/styles/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ select.astro-oojz3yon {
192192
color: var(--sl-color-accent) !important;
193193
}
194194

195+
/* Additional rule to ensure span inside active page link is styled */
196+
.sidebar-content .top-level li details ul li details ul li a[aria-current="page"] span {
197+
background-color: transparent;
198+
color: var(--sl-color-accent) !important;
199+
}
200+
195201
/* Style the parent li element when it contains an active page link */
196202
li:has([aria-current="page"]) > details > summary > div > span {
197203
color: var(--sl-color-accent) !important;

0 commit comments

Comments
 (0)