Added aria-label attribute wherever missing for accessibility.

This commit is contained in:
Nagesh Dhope
2020-01-01 10:37:17 +05:30
committed by Akshay Joshi
parent 37f76142fb
commit 8c4dff057f
13 changed files with 27 additions and 10 deletions

View File

@@ -260,6 +260,8 @@ define([
this.elements.dialog.classList.add('pg-el-container');
$(this.elements.commands.close).attr('title', gettext('Close'));
$(this.elements.commands.maximize).attr('title', gettext('Maximize'));
$(this.elements.commands.close).attr('aria-label', gettext('Close'));
$(this.elements.commands.maximize).attr('aria-label', gettext('Maximize'));
alertifyDialogResized.apply(this, arguments);
});
this.set('onresize', alertifyDialogStartResizing.bind(this, true));