[PM-10651] Use bitLink instead of icon button and add a11y title (#10483)

This commit is contained in:
Shane Melton 2024-08-13 10:15:14 -07:00 committed by GitHub
parent 6651f930aa
commit f017edb088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 3 deletions

View File

@ -690,6 +690,9 @@
"totpHelperWithCapture": {
"message": "Bitwarden can store and fill 2-step verification codes. Select the camera icon to take a screenshot of this website's authenticator QR code, or copy and paste the key into this field."
},
"learnMoreAboutAuthenticators": {
"message": "Learn more about authenticators"
},
"copyTOTP": {
"message": "Copy Authenticator key (TOTP)"
},

View File

@ -212,6 +212,9 @@
"totpHelperWithCapture": {
"message": "Bitwarden can store and fill 2-step verification codes. Select the camera icon to take a screenshot of this website's authenticator QR code, or copy and paste the key into this field."
},
"learnMoreAboutAuthenticators": {
"message": "Learn more about authenticators"
},
"folder": {
"message": "Folder"
},

View File

@ -88,11 +88,13 @@
<bit-label>
{{ "authenticatorKey" | i18n }}
<button
bitIconButton="bwi-question-circle"
bitLink
type="button"
size="small"
[bitPopoverTriggerFor]="totpPopover"
></button>
[appA11yTitle]="'learnMoreAboutAuthenticators' | i18n"
>
<i class="bwi bwi-sm bwi-question-circle" aria-hidden="true"></i>
</button>
<bit-popover #totpPopover [title]="'totpHelperTitle' | i18n">
<p>{{ (canCaptureTotp ? "totpHelperWithCapture" : "totpHelper") | i18n }}</p>
</bit-popover>

View File

@ -14,6 +14,7 @@ import {
CardComponent,
FormFieldModule,
IconButtonModule,
LinkModule,
PopoverModule,
SectionComponent,
SectionHeaderComponent,
@ -43,6 +44,7 @@ import { AutofillOptionsComponent } from "../autofill-options/autofill-options.c
NgIf,
PopoverModule,
AutofillOptionsComponent,
LinkModule,
],
})
export class LoginDetailsSectionComponent implements OnInit {