Add aria-label to the navbar menu button (#29587)

pull/29418/head^2
wxiaoguang 9 months ago committed by GitHub
parent 76789bdbcd
commit 797ad68964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      options/locale/locale_en-US.ini
  2. 2
      templates/base/head_navbar.tmpl

@ -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

@ -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 -->

Loading…
Cancel
Save