Skip to content

Commit 9545d1a

Browse files
committed
refactor(overlays): move hidden again
1 parent 6d88238 commit 9545d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/utils/overlays.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,6 @@ const overlayAnimation = async (
749749
const aniRoot = overlay.el;
750750
const animation = animationBuilder(aniRoot, opts);
751751

752-
aniRoot.setAttribute('aria-hidden', 'true');
753-
754752
if (!overlay.animated || !config.getBoolean('animated', true)) {
755753
animation.duration(0);
756754
}
@@ -767,6 +765,8 @@ const overlayAnimation = async (
767765
const activeAni = activeAnimations.get(overlay) || [];
768766
activeAnimations.set(overlay, [...activeAni, animation]);
769767

768+
aniRoot.setAttribute('aria-hidden', 'true');
769+
770770
await animation.play();
771771

772772
aniRoot.removeAttribute('aria-hidden');

0 commit comments

Comments
 (0)