Skip to content

Commit e79c35a

Browse files
committed
(a11y) try to disable all content inside viewContainer
1 parent da69028 commit e79c35a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/utils/overlays.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,10 @@ export const setRootAriaHidden = (hidden = false) => {
494494

495495
if (hidden) {
496496
viewContainer.setAttribute('aria-hidden', 'true');
497+
viewContainer.setAttribute('inert', '');
497498
} else {
498499
viewContainer.removeAttribute('aria-hidden');
500+
viewContainer.removeAttribute('inert');
499501
}
500502
};
501503

0 commit comments

Comments
 (0)