Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit d8c597f

Browse files
author
Gabriel Schulhof
committed
Dialog: Add "role=button" to the close button.
1 parent d7c81b3 commit d8c597f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/widgets/dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ $.widget( "mobile.dialog", $.extend( {
9999
location = ( value === "left" ? "left" : "right" );
100100
dst = this.element.children().find( ":jqmData(role='header')" ).first();
101101
btn = $( "<a></a>", {
102+
"role": "button",
102103
"href": "#",
103104
"class": "ui-btn ui-btn-" + location +
104105
" ui-corner-all ui-icon-delete ui-btn-icon-notext"

0 commit comments

Comments
 (0)