HFP-2396 Add aria-label to elements with role button

content-upgrade-on-upload
Oliver Tacke 2018-11-23 13:10:07 +01:00
parent 132f25e14a
commit 2be06b2eb9
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ H5P.ActionBar = (function ($, EventDispatcher) {
}
},
appendTo: $actions
});
}).attr('aria-label', H5P.t(type + 'Description'));
hasActions = true;
};

View File

@ -923,7 +923,7 @@ H5P.Dialog = function (name, title, content, $element) {
<div class="h5p-inner">\
<h2>' + title + '</h2>\
<div class="h5p-scroll-content">' + content + '</div>\
<div class="h5p-close" role="button" tabindex="0" title="' + H5P.t('close') + '">\
<div class="h5p-close" role="button" tabindex="0" aria-label="' + H5P.t('close') + '" title="' + H5P.t('close') + '">\
</div>\
</div>')
.insertAfter($element)