Skip to content

Commit 31a55c7

Browse files
authored
Merge pull request #300 from dmerchie/a11y
add Accessiblility on the close button
2 parents 4aa9d53 + 3e3743e commit 31a55c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/bootstrap-dialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@
776776
createCloseButton: function () {
777777
var $container = $('<div></div>');
778778
$container.addClass(this.getNamespace('close-button'));
779-
var $icon = $('<button class="close"></button>');
779+
var $icon = $('<button class="close" aria-label="close"></button>');
780780
$icon.append(this.options.closeIcon);
781781
$container.append($icon);
782782
$container.on('click', {dialog: this}, function (event) {

0 commit comments

Comments
 (0)