MOBILE-4565 a11y: Solve user tours keyboard focus

main
Pau Ferrer Ocaña 2024-04-15 17:38:36 +02:00
parent 1b301dae58
commit 7dfb3c13df
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,7 @@ export class CoreUserToursService {
const tour = CoreDirectivesRegistry.require(element, CoreUserToursUserTourComponent); const tour = CoreDirectivesRegistry.require(element, CoreUserToursUserTourComponent);
viewContainer?.setAttribute('aria-hidden', 'true'); viewContainer?.setAttribute('aria-hidden', 'true');
viewContainer?.setAttribute('tabindex', '-1');
this.toursListeners[options.id]?.forEach(listener => listener.resolve()); 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'); const viewContainer = container.querySelector('ion-router-outlet, ion-nav, #ion-view-container-root');
viewContainer?.removeAttribute('aria-hidden'); viewContainer?.removeAttribute('aria-hidden');
viewContainer?.removeAttribute('tabindex');
} }
/** /**