Skip to content

Commit 966810a

Browse files
Replace show variable with hide in modal manager
1 parent 43c14e0 commit 966810a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/mui-material/src/Modal/ModalManager.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function isOverflowing(container: Element): boolean {
1919
return container.scrollHeight > container.clientHeight;
2020
}
2121

22-
export function ariaHidden(element: Element, show: boolean): void {
23-
if (show) {
22+
export function ariaHidden(element: Element, hide: boolean): void {
23+
if (hide) {
2424
element.setAttribute('aria-hidden', 'true');
2525
} else {
2626
element.removeAttribute('aria-hidden');
@@ -61,15 +61,15 @@ function ariaHiddenSiblings(
6161
mountElement: Element,
6262
currentElement: Element,
6363
elementsToExclude: readonly Element[],
64-
show: boolean,
64+
hide: boolean,
6565
): void {
6666
const blacklist = [mountElement, currentElement, ...elementsToExclude];
6767

6868
[].forEach.call(container.children, (element: Element) => {
6969
const isNotExcludedElement = !blacklist.includes(element);
7070
const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);
7171
if (isNotExcludedElement && isNotForbiddenElement) {
72-
ariaHidden(element, show);
72+
ariaHidden(element, hide);
7373
}
7474
});
7575
}

0 commit comments

Comments
 (0)