aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHesterG2023-02-23 05:58:07 +0800
committerGitHub2023-02-22 15:58:07 -0600
commita78e0b7dade16bc6509b943fe86e74962f1b95b6 (patch)
treed6e18d27a0331664070a282ba8bce887247a5b87 /templates
parent1319ba6742a8562453646763adad22379674bab5 (diff)
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.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 059363b72..10bbf655b 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>