1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-4239] When viewing an item with a passkey, passkey is not announced by screenreader (#7154)

* Made passkey field focusable

* Made passkey field focusableand accessibilty possible for screenreaders in announcing the field
This commit is contained in:
SmithThe4th
2023-12-21 10:54:54 -05:00
committed by GitHub
parent 6fe82e95e7
commit 07d224d6bc
12 changed files with 66 additions and 22 deletions

View File

@@ -195,7 +195,13 @@
<div class="row">
<div class="col-6 form-group">
<label for="loginFido2credential">{{ "typePasskey" | i18n }}</label>
<div class="input-group">
<div
class="input-group"
tabindex="0"
attr.aria-label="{{ 'typePasskey' | i18n }} {{
fido2CredentialCreationDateValue
}}"
>
<input
id="loginFido2credential"
class="form-control"

View File

@@ -43,15 +43,6 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
protected totpInterval: number;
protected override componentName = "app-vault-add-edit";
get fido2CredentialCreationDateValue(): string {
const dateCreated = this.i18nService.t("dateCreated");
const creationDate = this.datePipe.transform(
this.cipher?.login?.fido2Credentials?.[0]?.creationDate,
"short",
);
return `${dateCreated} ${creationDate}`;
}
constructor(
cipherService: CipherService,
folderService: FolderService,
@@ -70,7 +61,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
passwordRepromptService: PasswordRepromptService,
sendApiService: SendApiService,
dialogService: DialogService,
private datePipe: DatePipe,
datePipe: DatePipe,
) {
super(
cipherService,
@@ -88,6 +79,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
organizationService,
sendApiService,
dialogService,
datePipe,
);
}