aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2020-12-14 14:48:08 +0100
committerXhmikosR <[email protected]>2021-01-08 09:49:18 +0200
commit70175db4294641c91e825b5e2555e7d7d398e320 (patch)
treeac9e6aba68808a276ff17a450e09262666468453
parentd9adaae5b0fe41e237f20f2dc1232a1025af9d1b (diff)
downloadbootstrap-70175db4294641c91e825b5e2555e7d7d398e320.tar.xz
bootstrap-70175db4294641c91e825b5e2555e7d7d398e320.zip
docs(sidebar): active link
-rw-r--r--site/layouts/partials/docs-sidebar.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html
index ba974f4cd..eec268ceb 100644
--- a/site/layouts/partials/docs-sidebar.html
+++ b/site/layouts/partials/docs-sidebar.html
@@ -16,7 +16,7 @@
{{- $is_active_group := eq $.Page.Params.group $group_slug -}}
{{- if $group.pages }}
- <li class="mb-1{{ if $is_active_group }} active{{ end }}">
+ <li class="mb-1">
<button class="btn d-inline-flex align-items-center rounded{{ if not $is_active_group }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#{{ $group_slug }}-collapse" aria-expanded="{{ $is_active_group }}"{{ if $is_active_group }} aria-current="true"{{ end }}>
{{ $group.title }}
</button>
@@ -34,8 +34,8 @@
</li>
{{- else }}
<li class="my-3 mx-4 border-top"></li>
- <li{{ if $is_active_group }} class="active"{{ end }}>
- <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="d-inline-flex align-items-center rounded">
+ <li>
+ <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="d-inline-flex align-items-center rounded{{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}>
{{ $group.title }}
</a>
</li>