summaryrefslogtreecommitdiffstats
path: root/templates/base/head_navbar.tmpl
diff options
context:
space:
mode:
authorFelipe Leopoldo Sologuren GutiƩrrez <fsologureng@users.noreply.github.com>2023-01-28 22:29:10 -0300
committerGitHub <noreply@github.com>2023-01-29 09:29:10 +0800
commit2b1e47e2a2a5a31a0fc5039ed7dbb192a4a51dd7 (patch)
treea5469f84b8e917e07f77979c716710faedcd76d1 /templates/base/head_navbar.tmpl
parentc0015979a692b795bcf7416196bec01c375d7aa2 (diff)
downloadgitea-2b1e47e2a2a5a31a0fc5039ed7dbb192a4a51dd7.tar.gz
gitea-2b1e47e2a2a5a31a0fc5039ed7dbb192a4a51dd7.zip
Improve accessibility of navigation bar and footer (#22635)
Added ARIA navigation landmark to navigation bar and aria label for both nav bar and footer. Contributed by @forgejo. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/base/head_navbar.tmpl')
-rw-r--r--templates/base/head_navbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 3c4670e418..90a54608e6 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -1,4 +1,4 @@
-<div class="ui container" id="navbar">
+<div class="ui container" id="navbar" role="navigation" aria-label="{{.locale.Tr "aria.navbar"}}">
{{$notificationUnreadCount := 0}}
{{if .IsSigned}}
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}