1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-13776] Generator Icon Button labels (#11623)

* update aria labels for generate and copy buttons within the generator components

- Using the `appA11yTitle` across all icon buttons
- Updated all labels to be targeted towards the credential type rather than just "password"

* add copy/generate passphrase translations to desktop

* add fixme comments for translations

* remove reference to JIRA ticket
This commit is contained in:
Nick Krantz
2024-10-23 10:23:51 -05:00
committed by GitHub
parent dfa7509c8e
commit c4fcd53ad2
8 changed files with 117 additions and 18 deletions

View File

@@ -16,18 +16,21 @@
<bit-color-password class="tw-font-mono" [password]="value$ | async"></bit-color-password>
</div>
<div class="tw-flex tw-items-center tw-space-x-1">
<button type="button" bitIconButton="bwi-generate" buttonType="main" (click)="generate$.next()">
{{ "generatePassword" | i18n }}
</button>
<button
type="button"
bitIconButton="bwi-generate"
buttonType="main"
(click)="generate$.next()"
[appA11yTitle]="credentialTypeGenerateLabel$ | async"
></button>
<button
type="button"
bitIconButton="bwi-clone"
buttonType="main"
showToast
[appA11yTitle]="credentialTypeCopyLabel$ | async"
[appCopyClick]="value$ | async"
>
{{ "copyPassword" | i18n }}
</button>
></button>
</div>
</bit-card>
<tools-password-settings