1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

PM-9417 - PasswordStrengthComp - A11y improvement - add screen reader announcement for all usages of password strength. (#13515)

This commit is contained in:
Jared Snider
2025-02-24 03:55:18 -05:00
committed by GitHub
parent 99e2b9e394
commit c4a230e80b
4 changed files with 31 additions and 0 deletions

View File

@@ -80,6 +80,15 @@
"masterPassHint": {
"message": "Master password hint (optional)"
},
"passwordStrengthScore": {
"message": "Password strength score $SCORE$",
"placeholders": {
"score": {
"content": "$1",
"example": "4"
}
}
},
"joinOrganization": {
"message": "Join organization"
},

View File

@@ -704,6 +704,15 @@
"masterPassHintLabel": {
"message": "Master password hint"
},
"passwordStrengthScore": {
"message": "Password strength score $SCORE$",
"placeholders": {
"score": {
"content": "$1",
"example": "4"
}
}
},
"joinOrganization": {
"message": "Join organization"
},

View File

@@ -4779,6 +4779,15 @@
"masterPassPolicyDesc": {
"message": "Set requirements for master password strength."
},
"passwordStrengthScore": {
"message": "Password strength score $SCORE$",
"placeholders": {
"score": {
"content": "$1",
"example": "4"
}
}
},
"twoStepLoginPolicyTitle": {
"message": "Require two-step login"
},

View File

@@ -5,3 +5,7 @@
[showText]="showText"
[barWidth]="scoreWidth"
></bit-progress>
<div aria-live="polite" class="tw-sr-only">
{{ "passwordStrengthScore" | i18n: text }}
</div>