Add accessibility to the menu on the navbar (#23059) (#23095)

Backport #23059

This PR is trying to add accessibility to the menu as mentioned in
#23053 so the menu can be accessed using keyboard (A quick demo is added
below), with a reference to
[PR2612](https://github.com/go-gitea/gitea/pull/22612). The goal is to
make the menu accessible merely using keyboard like shown below. And
this PR might need confirmation from developers using screen readers.
pull/23099/head
HesterG 2 years ago committed by GitHub
parent aff432b197
commit ced94f2e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      templates/base/head_navbar.tmpl

@ -18,9 +18,9 @@
</span> </span>
</a> </a>
{{end}} {{end}}
<div class="ui icon button mobile-only" id="navbar-expand-toggle"> <button class="ui icon button mobile-only" id="navbar-expand-toggle">
{{svg "octicon-three-bars"}} {{svg "octicon-three-bars"}}
</div> </button>
</div> </div>
</div> </div>

Loading…
Cancel
Save