1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

[PM-2014] feat: improve aria labels

This commit is contained in:
Andreas Coroiu
2023-05-10 12:00:52 +02:00
parent ef507cb2ac
commit 2e5f9e58d3
2 changed files with 9 additions and 5 deletions

View File

@@ -24,7 +24,14 @@
<ng-container *ngIf="!credential.prfSupport">-</ng-container>
</td>
<td class="tw-py-2 tw-pl-20 tw-pr-0">
<button type="button" bitLink [disabled]="loading">{{ "remove" | i18n }}</button>
<button
type="button"
bitLink
[disabled]="loading"
[attr.aria-label]="('remove' | i18n) + ' ' + credential.name"
>
{{ "remove" | i18n }}
</button>
</td>
</tr>
</table>
@@ -44,7 +51,7 @@
*ngIf="!hasCredentials"
type="button"
bitButton
[attr.aria-label]="'enableLoginWithPasskey' | i18n"
[attr.aria-label]="('enable' | i18n) + ' ' + ('loginWithPasskey' | i18n)"
[disabled]="loading"
(click)="createCredential()"
>

View File

@@ -631,9 +631,6 @@
"loginWithPasskeyInfo": {
"message": "Use facial recognition, a fingerprint, or other FIDO2 security key to log in instead of your email and password."
},
"enableLoginWithPasskey": {
"message": "Turn on log in with passkey"
},
"newPasskey": {
"message": "New passkey"
},