Skip to content

Commit 6d88238

Browse files
committed
refactor(overlays): move hidden
1 parent b7fb436 commit 6d88238

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/utils/overlays.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ export const present = async <OverlayPresentOptions>(
535535
? overlay.enterAnimation
536536
: config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
537537

538-
hideAnimatingOverlayFromScreenReaders(overlay.el);
538+
// hideAnimatingOverlayFromScreenReaders(overlay.el);
539539

540540
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
541541
if (completed) {
@@ -749,6 +749,8 @@ const overlayAnimation = async (
749749
const aniRoot = overlay.el;
750750
const animation = animationBuilder(aniRoot, opts);
751751

752+
aniRoot.setAttribute('aria-hidden', 'true');
753+
752754
if (!overlay.animated || !config.getBoolean('animated', true)) {
753755
animation.duration(0);
754756
}
@@ -767,6 +769,8 @@ const overlayAnimation = async (
767769

768770
await animation.play();
769771

772+
aniRoot.removeAttribute('aria-hidden');
773+
770774
return true;
771775
};
772776

0 commit comments

Comments
 (0)