From 53de0cb457f0816505297e9be3b9e9dafd5457d3 Mon Sep 17 00:00:00 2001 From: Volha Mardvilka Date: Tue, 24 Sep 2024 11:36:13 +0000 Subject: [PATCH] 369106935: (fix) [a11y] make focused element announced --- .../testing-complete/testing-complete.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/ui/src/app/components/testing-complete/testing-complete.component.ts b/modules/ui/src/app/components/testing-complete/testing-complete.component.ts index d8ce53d4b..956292aab 100644 --- a/modules/ui/src/app/components/testing-complete/testing-complete.component.ts +++ b/modules/ui/src/app/components/testing-complete/testing-complete.component.ts @@ -61,12 +61,16 @@ export class TestingCompleteComponent implements OnDestroy, OnInit { .pipe(takeUntil(this.destroy$)) .subscribe(profile => { if (profile === undefined) { - this.focusManagerService.focusFirstElementInContainer(); + timer(1000) + .pipe(takeUntil(this.destroy$)) + .subscribe(() => { + this.focusManagerService.focusFirstElementInContainer(); + }); return; } if (profile === null) { this.route.navigate([Routes.RiskAssessment]).then(() => - timer(100) + timer(1000) .pipe(takeUntil(this.destroy$)) .subscribe(() => { this.focusManagerService.focusFirstElementInContainer();