Skip to content

Commit

Permalink
add type="button" to Bootstrap versions dropdown (#36696)
Browse files Browse the repository at this point in the history
minor accessibility issue fix reported by webhint.io browser extension
  • Loading branch information
coliff committed Jul 7, 2022
1 parent 6cf7253 commit 6f10bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/layouts/partials/docs-versions.html
Expand Up @@ -11,7 +11,7 @@
{{- end }}

<li class="nav-item dropdown">
<button class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" data-bs-display="static">
<button type="button" class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" data-bs-display="static">
<span class="d-lg-none" aria-hidden="true">Bootstrap</span><span class="visually-hidden">Bootstrap&nbsp;</span> v{{ .Site.Params.docs_version }} <span class="visually-hidden">(switch to other versions)</span>
</button>
<ul class="dropdown-menu dropdown-menu-end">
Expand Down

0 comments on commit 6f10bdc

Please sign in to comment.