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

[PM-11131] Screen Reader Announcements for Copy (#11091)

* add copy specific aria-labels for login ciphers

* add copy specific aria-labels for card ciphers

* add copy translations for identity to web translations
This commit is contained in:
Nick Krantz
2024-09-17 13:23:15 -05:00
committed by GitHub
parent a42006763d
commit d68853a4a2
7 changed files with 63 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
[appCopyClick]="notes"
showToast
[valueLabel]="'note' | i18n"
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyNotes' | i18n"
></button>
</bit-form-field>
</bit-card>

View File

@@ -35,7 +35,7 @@
[appCopyClick]="login.launchUri"
[valueLabel]="'website' | i18n"
showToast
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyWebsite' | i18n"
data-testid="copy-website"
></button>
</bit-form-field>

View File

@@ -39,7 +39,7 @@
[appCopyClick]="card.number"
showToast
[valueLabel]="'number' | i18n"
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyNumber' | i18n"
data-testid="copy-number"
></button>
</bit-form-field>
@@ -79,7 +79,7 @@
[appCopyClick]="card.code"
showToast
[valueLabel]="'securityCode' | i18n"
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copySecurityCode' | i18n"
data-testid="copy-code"
(click)="logCardEvent(true, EventType.Cipher_ClientCopiedCardCode)"
></button>

View File

@@ -19,7 +19,7 @@
[appCopyClick]="field.value"
showToast
[valueLabel]="field.name"
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyCustomField' | i18n: field.name"
data-testid="copy-custom-field"
></button>
</bit-form-field>
@@ -40,7 +40,7 @@
[appCopyClick]="field.value"
showToast
[valueLabel]="field.name"
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyCustomField' | i18n: field.name"
(click)="logCopyEvent()"
></button>
</bit-form-field>

View File

@@ -22,7 +22,7 @@
[appCopyClick]="cipher.login.username"
[valueLabel]="'username' | i18n"
showToast
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyUsername' | i18n"
data-testid="copy-username"
></button>
</bit-form-field>
@@ -64,7 +64,7 @@
[appCopyClick]="cipher.login.password"
[valueLabel]="'password' | i18n"
showToast
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyPassword' | i18n"
data-testid="copy-password"
(click)="logCopyEvent()"
></button>
@@ -127,7 +127,7 @@
[appCopyClick]="totpCodeCopyObj?.totpCode"
[valueLabel]="'verificationCodeTotp' | i18n"
showToast
[appA11yTitle]="'copyValue' | i18n"
[appA11yTitle]="'copyVerificationCode' | i18n"
data-testid="copy-totp"
[disabled]="!(isPremium$ | async)"
class="disabled:tw-cursor-default"