update aria label of the character count toggle (#10915)
This commit is contained in:
parent
92e71d9252
commit
fb1a294c97
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue