File tree Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ /.quarto /
2
+ ** /* .quarto_ipynb
Original file line number Diff line number Diff line change
1
+ project :
2
+ type : website
3
+
4
+ website :
5
+ title : " Issue 13506 - No Logo"
6
+ navbar :
7
+ left :
8
+ - text : " Section A"
9
+ href : index.qmd
10
+ - text : " Section B"
11
+ href : page2.qmd
12
+ sidebar :
13
+ - title : " Section A"
14
+ contents :
15
+ - index.qmd
16
+ - title : " Section B"
17
+ contents :
18
+ - page2.qmd
19
+
20
+ format :
21
+ html :
22
+ theme : cosmo
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Section A"
3
+ _quarto :
4
+ tests :
5
+ html :
6
+ ensureHtmlElements :
7
+ -
8
+ - ' nav.navbar a.nav-link[href$="index.html"].active'
9
+ - ' nav.navbar a.nav-link[href$="page2.html"]:not(.active)'
10
+ -
11
+ - ' a.sidebar-logo-link'
12
+ ---
13
+
14
+ ## Section A
15
+
16
+ This is Section A. When NO logo is configured in the sidebar, the navbar active
17
+ state should work correctly. The "Section A" navbar item should be active on this page.
18
+
19
+ The bug (issue #13506 ): After PR #12996 , ` sidebar.logo ` was normalized to
20
+ ` {light: undefined, dark: undefined} ` , making ` if(sidebar.logo) ` always true.
21
+ This created empty ` <a class="sidebar-logo-link"> ` elements that interfered with
22
+ the navbar active state detection logic.
23
+
24
+ See also: [ Section B] ( page2.qmd )
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Section B"
3
+ _quarto :
4
+ tests :
5
+ html :
6
+ ensureHtmlElements :
7
+ -
8
+ - ' nav.navbar a.nav-link[href$="page2.html"].active'
9
+ - ' nav.navbar a.nav-link[href$="index.html"]:not(.active)'
10
+ -
11
+ - ' a.sidebar-logo-link'
12
+ ---
13
+
14
+ ## Section B
15
+
16
+ This is Section B. The "Section B" navbar item should be active on this page,
17
+ demonstrating that the navbar active state detection works correctly without
18
+ empty logo links interfering.
19
+
20
+ See also: [ Section A] ( index.qmd )
You can’t perform that action at this time.
0 commit comments