File tree 1 file changed +4
-4
lines changed
packages/mui-material/src/Modal
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ function isOverflowing(container: Element): boolean {
19
19
return container . scrollHeight > container . clientHeight ;
20
20
}
21
21
22
- export function ariaHidden ( element : Element , show : boolean ) : void {
23
- if ( show ) {
22
+ export function ariaHidden ( element : Element , hide : boolean ) : void {
23
+ if ( hide ) {
24
24
element . setAttribute ( 'aria-hidden' , 'true' ) ;
25
25
} else {
26
26
element . removeAttribute ( 'aria-hidden' ) ;
@@ -61,15 +61,15 @@ function ariaHiddenSiblings(
61
61
mountElement : Element ,
62
62
currentElement : Element ,
63
63
elementsToExclude : readonly Element [ ] ,
64
- show : boolean ,
64
+ hide : boolean ,
65
65
) : void {
66
66
const blacklist = [ mountElement , currentElement , ...elementsToExclude ] ;
67
67
68
68
[ ] . forEach . call ( container . children , ( element : Element ) => {
69
69
const isNotExcludedElement = ! blacklist . includes ( element ) ;
70
70
const isNotForbiddenElement = ! isAriaHiddenForbiddenOnElement ( element ) ;
71
71
if ( isNotExcludedElement && isNotForbiddenElement ) {
72
- ariaHidden ( element , show ) ;
72
+ ariaHidden ( element , hide ) ;
73
73
}
74
74
} ) ;
75
75
}
You can’t perform that action at this time.
0 commit comments