MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setRootAriaHidden

Function setRootAriaHidden

core/src/utils/overlays.ts:503–516  ·  view source on GitHub ↗
(hidden = false)

Source from the content-addressed store, hash-verified

501 * for main content.
502 */
503export const setRootAriaHidden = (hidden = false) => {
504 const root = getAppRoot(document);
505 const viewContainer = root.querySelector('ion-router-outlet, #ion-view-container-root');
506
507 if (!viewContainer) {
508 return;
509 }
510
511 if (hidden) {
512 viewContainer.setAttribute('aria-hidden', 'true');
513 } else {
514 viewContainer.removeAttribute('aria-hidden');
515 }
516};
517
518export const present = async <OverlayPresentOptions>(
519 overlay: OverlayInterface,

Callers 2

presentFunction · 0.85
dismissFunction · 0.85

Calls 1

getAppRootFunction · 0.85

Tested by

no test coverage detected