Skip to content

Commit 654bf70

Browse files
devGregAclaude
authored andcommitted
docs: fix active nav link contrast on navy header
The main nav row lives inside #offcanvasNavMain but outside .offcanvas-body in this header, so the white active-link rule never matched and the theme's Fuji Blue applied, which is hard to read on the navy band. Scope the desktop rules to .navbar-nav directly (active link is now white on a blue tint) and correct the mobile offcanvas scope the same way (link blue on the light panel). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ece7b04 commit 654bf70

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/assets/scss/common/_custom.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ h1, h2, h3, h4, h5, h6,
207207
}
208208
}
209209

210-
.offcanvas-body .navbar-nav .nav-link {
210+
// The main nav row sits inside #offcanvasNavMain but OUTSIDE
211+
// .offcanvas-body in this header, so scope to .navbar-nav directly.
212+
.navbar-nav .nav-link {
211213
font-size: 0.9375rem;
212214
font-weight: 500;
213215
padding: 0.3125rem 0.75rem;
@@ -305,7 +307,7 @@ h1, h2, h3, h4, h5, h6,
305307
// Inside the navy header band the offcanvas is inlined on desktop; scope the
306308
// light-on-navy colors so the *panel* (mobile, position: fixed) stays themed.
307309
@media (max-width: 991.98px) {
308-
.dd-header .offcanvas-body .navbar-nav .nav-link {
310+
.dd-header .offcanvas .navbar-nav .nav-link {
309311
color: var(--dd-ink);
310312

311313
&:hover {

0 commit comments

Comments
 (0)