File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments