Skip to content

Commit 3ebe9b6

Browse files
committed
refactor(cdk/dialog): account for top-level popovers
Updates the logic that sets `aria-hidden` on top-level elements to account for popovers.
1 parent 839c2e6 commit 3ebe9b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/dialog/dialog.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ export class Dialog implements OnDestroy {
401401
sibling !== overlayContainer &&
402402
sibling.nodeName !== 'SCRIPT' &&
403403
sibling.nodeName !== 'STYLE' &&
404-
!sibling.hasAttribute('aria-live')
404+
!sibling.hasAttribute('aria-live') &&
405+
!sibling.hasAttribute('popover')
405406
) {
406407
this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));
407408
sibling.setAttribute('aria-hidden', 'true');

0 commit comments

Comments
 (0)