Skip to content

Commit 04c4e4e

Browse files
fix: change version selector from anchor to button for better accessibility
risk: low
1 parent f98de6a commit 04c4e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/layouts/partials/navbar-version-selector.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
{{ $.Scratch.Set "activeVersion" .version }}
1010
{{ end }}
1111
{{ end }}
12-
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
12+
<button class="nav-link dropdown-toggle" id="navbarDropdown" type="button" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
1313
{{ printf "%s" ($.Scratch.Get "docLabel") }}
14-
</a>
14+
</button>
1515
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
1616
{{ range .Site.Params.versions }}
1717
<a

0 commit comments

Comments
 (0)