1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +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": { "masterPassHint": {
"message": "Master password hint (optional)" "message": "Master password hint (optional)"
}, },
"passwordStrengthScore": {
"message": "Password strength score $SCORE$",
"placeholders": {
"score": {
"content": "$1",
"example": "4"
}
}
},
"joinOrganization": { "joinOrganization": {
"message": "Join organization" "message": "Join organization"
}, },

View File

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

View File

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

View File

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