MOBILE-4565 a11y: Solve user tours keyboard focus
parent
1b301dae58
commit
7dfb3c13df
|
@ -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');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue