1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-13 10:24:20 +01:00

update aria label of the character count toggle (#10915)

This commit is contained in:
Nick Krantz 2024-09-06 08:49:46 -05:00 committed by GitHub
parent 92e71d9252
commit fb1a294c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 7 deletions

View File

@ -4300,8 +4300,11 @@
"enterprisePolicyRequirementsApplied": { "enterprisePolicyRequirementsApplied": {
"message": "Enterprise policy requirements have been applied to this setting" "message": "Enterprise policy requirements have been applied to this setting"
}, },
"additionalContentAvailable": { "showCharacterCount": {
"message": "Additional content is available" "message": "Show character count"
},
"hideCharacterCount": {
"message": "Hide character count"
}, },
"itemsInTrash": { "itemsInTrash": {
"message": "Items in trash" "message": "Items in trash"

View File

@ -9050,8 +9050,11 @@
"message": "Public API", "message": "Public API",
"description": "The text, 'API', is an acronymn and should not be translated." "description": "The text, 'API', is an acronymn and should not be translated."
}, },
"additionalContentAvailable": { "showCharacterCount": {
"message": "Additional content is available" "message": "Show character count"
},
"hideCharacterCount": {
"message": "Hide character count"
}, },
"editAccess": { "editAccess": {
"message": "Edit access" "message": "Edit access"

View File

@ -51,10 +51,10 @@
bitSuffix bitSuffix
type="button" type="button"
data-testid="toggle-password-count" data-testid="toggle-password-count"
[appA11yTitle]="'toggleCharacterCount' | i18n" [appA11yTitle]="(showPasswordCount ? 'hideCharacterCount' : 'showCharacterCount') | i18n"
[attr.aria-expanded]="showPasswordCount"
appStopClick appStopClick
(click)="togglePasswordCount()" (click)="togglePasswordCount()"
[attr.aria-label]="'additionalContentAvailable' | i18n"
></button> ></button>
<button <button
*ngIf="cipher.viewPassword" *ngIf="cipher.viewPassword"