diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-04 22:31:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 14:31:59 +0000 |
commit | 797ad68964121d5fd0f936567397b3456b2f8d8b (patch) | |
tree | 0b5129814ccb1c259b43074ca01ee2368d0f9aed | |
parent | 76789bdbcd88c02b306842c91da18d8255dd582b (diff) | |
download | gitea-797ad68964121d5fd0f936567397b3456b2f8d8b.tar.gz gitea-797ad68964121d5fd0f936567397b3456b2f8d8b.zip |
Add aria-label to the navbar menu button (#29587)
-rw-r--r-- | options/locale/locale_en-US.ini | 3 | ||||
-rw-r--r-- | templates/base/head_navbar.tmpl | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 255fed28ad..3fc74959ca 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -320,6 +320,7 @@ env_config_keys = Environment Configuration env_config_keys_prompt = The following environment variables will also be applied to your configuration file: [home] +nav_menu = Navigation Menu uname_holder = Username or Email Address password_holder = Password switch_dashboard_context = Switch Dashboard Context @@ -654,7 +655,7 @@ block.note.title = Optional note: block.note.info = The note is not visible to the blocked user. block.note.edit = Edit note block.list = Blocked users -block.list.none = You have not blocked any users. +block.list.none = You have not blocked any users. [settings] profile = Profile diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 3797de0a0f..51eeea405a 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -20,7 +20,7 @@ </div> </a> {{end}} - <button class="item tw-w-auto ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle">{{svg "octicon-three-bars"}}</button> + <button class="item tw-w-auto ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle" aria-label="{{ctx.Locale.Tr "home.nav_menu"}}">{{svg "octicon-three-bars"}}</button> </div> <!-- navbar links non-mobile --> |