Skip to content

Commit 3cfdaaa

Browse files
DOCS-3814: Expand left sidenav one level down by default to improve navigation and discoverability (#4250)
1 parent c188509 commit 3cfdaaa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ navbar_logo = true
117117
navbar_translucent_over_cover_disable = false
118118
sidebar_menu_compact = true # When true, the section headings work like an accordian.
119119
sidebar_search_disable = true
120+
ul_show = 3 # Always expand every first level section of the sidenav -- due to tabs, our 'first level' is 3
120121

121122
[params.ui.feedback]
122123
enable = true

layouts/partials/sidebar-tree.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
{{- if (or $hideChildren $treeRoot) -}}
9595
{{- else -}}
9696
<span class="menu-toggle">
97-
{{ if (or $activePath $active) }}
97+
{{ if (or $activePath $active (eq $ulNr 2)) }}
9898
<i class="fas fa-chevron-down"></i>
9999
{{ else }}
100100
<i class="fas fa-chevron-right"></i>

0 commit comments

Comments
 (0)