diff options
author | HesterG <hestergong@gmail.com> | 2023-02-23 05:58:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 15:58:07 -0600 |
commit | a78e0b7dade16bc6509b943fe86e74962f1b95b6 (patch) | |
tree | d6e18d27a0331664070a282ba8bce887247a5b87 /templates | |
parent | 1319ba6742a8562453646763adad22379674bab5 (diff) | |
download | gitea-a78e0b7dade16bc6509b943fe86e74962f1b95b6.tar.gz gitea-a78e0b7dade16bc6509b943fe86e74962f1b95b6.zip |
Add accessibility to the menu on the navbar (#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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/head_navbar.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 059363b72d..10bbf655b5 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -18,9 +18,9 @@ </span> </a> {{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"}} - </div> + </button> </div> </div> |