1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

add aria-label to account button (#5338)

This commit is contained in:
Jonathan Prusik
2023-05-03 11:39:39 -04:00
committed by GitHub
parent f655460fa7
commit d3efcd9279
2 changed files with 10 additions and 0 deletions

View File

@@ -45,6 +45,7 @@
type="button"
[bitMenuTriggerFor]="accountMenu"
class="tw-border-0 tw-bg-transparent tw-text-alt2 tw-opacity-70 hover:tw-opacity-90"
attr.aria-label="{{ 'accountLoggedInAsName' | i18n : name }}"
>
<dynamic-avatar
[text]="name"

View File

@@ -5429,6 +5429,15 @@
"message": "Current organization",
"description": "This is used by screen readers to indicate the organization that is currently being shown to the user."
},
"accountLoggedInAsName": {
"message": "Account: Logged in as $NAME$",
"placeholders": {
"name": {
"content": "$1",
"example": "John Smith"
}
}
},
"accountSettings": {
"message": "Account settings"
},