Hide redundant confirmation dialog exit button for assistive technologies.

HFJ-2004
pull/22/head
Thomas Marstrander 2016-06-09 11:26:11 +02:00
parent d42630c369
commit e10594fb49
1 changed files with 4 additions and 3 deletions

View File

@ -120,6 +120,7 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
// Exit button // Exit button
var exitButton = document.createElement('button'); var exitButton = document.createElement('button');
exitButton.classList.add('h5p-confirmation-dialog-exit'); exitButton.classList.add('h5p-confirmation-dialog-exit');
exitButton.setAttribute('aria-hidden', 'true');
exitButton.title = options.cancelText; exitButton.title = options.cancelText;
// Cancel handler // Cancel handler