From 7dfb3c13df9a8e1246d6b412c06238de8f92b8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 15 Apr 2024 17:38:36 +0200 Subject: [PATCH] MOBILE-4565 a11y: Solve user tours keyboard focus --- src/core/features/usertours/services/user-tours.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/features/usertours/services/user-tours.ts b/src/core/features/usertours/services/user-tours.ts index 3afbe03c4..f497c07bb 100644 --- a/src/core/features/usertours/services/user-tours.ts +++ b/src/core/features/usertours/services/user-tours.ts @@ -127,6 +127,7 @@ export class CoreUserToursService { const tour = CoreDirectivesRegistry.require(element, CoreUserToursUserTourComponent); viewContainer?.setAttribute('aria-hidden', 'true'); + viewContainer?.setAttribute('tabindex', '-1'); this.toursListeners[options.id]?.forEach(listener => listener.resolve()); @@ -149,6 +150,8 @@ export class CoreUserToursService { const viewContainer = container.querySelector('ion-router-outlet, ion-nav, #ion-view-container-root'); viewContainer?.removeAttribute('aria-hidden'); + viewContainer?.removeAttribute('tabindex'); + } /**