From 0dd13d78bec01d8c8c94ce4075eb621d67ae95fd Mon Sep 17 00:00:00 2001 From: Olga Mardvilko Date: Wed, 22 May 2024 17:01:38 +0300 Subject: [PATCH] 342096458: (fix) [GAR 1.3] add focus trap to certificates panel to prevent move focus to risk profile (#472) Co-authored-by: Volha Mardvilka --- .../ui/src/app/pages/certificates/certificates.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/src/app/pages/certificates/certificates.component.ts b/modules/ui/src/app/pages/certificates/certificates.component.ts index 3a12c4c14..142f14f49 100644 --- a/modules/ui/src/app/pages/certificates/certificates.component.ts +++ b/modules/ui/src/app/pages/certificates/certificates.component.ts @@ -18,7 +18,7 @@ import { MatIcon } from '@angular/material/icon'; import { CertificateItemComponent } from './certificate-item/certificate-item.component'; import { CommonModule, DatePipe } from '@angular/common'; import { MatButtonModule } from '@angular/material/button'; -import { LiveAnnouncer } from '@angular/cdk/a11y'; +import { CdkTrapFocus, LiveAnnouncer } from '@angular/cdk/a11y'; import { CertificateUploadButtonComponent } from './certificate-upload-button/certificate-upload-button.component'; import { CertificatesStore } from './certificates.store'; import { DeleteFormComponent } from '../../components/delete-form/delete-form.component'; @@ -37,6 +37,7 @@ import { FILE_NAME_LENGTH } from './certificate.validator'; CommonModule, ], providers: [CertificatesStore, DatePipe], + hostDirectives: [CdkTrapFocus], templateUrl: './certificates.component.html', styleUrl: './certificates.component.scss', })