Skip to content

Commit 7f88e7f

Browse files
rpkollermgol
andauthored
only add aria-modal when this.options.modal is set to true
suggestion by @mgol Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
1 parent 268dc62 commit 7f88e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ $.widget( "ui.dialog", {
348348
// Setting tabIndex makes the div focusable
349349
tabIndex: -1,
350350
role: "dialog",
351-
"aria-modal": "true"
351+
"aria-modal": this.options.modal ? "true" : null
352352
} )
353353
.appendTo( this._appendTo() );
354354

0 commit comments

Comments
 (0)