From 7dd1a2adfffefc08676f426440a7c87867aa8e60 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Thu, 10 Sep 2015 08:17:19 +0000 Subject: [PATCH] MDL-35918 javascript: dialogues screen reader support The YUI notification dialogues will now set the appropriate aria attributes when they are shown/hidden to allow screen readers to navigate them correctly. When the dialogue is shown all background elements will be marked as hidden while the dialogue is marked as visible to a screen reader. When the dialogue is closed the modified elements will be reverted to their previous state and the dialogue will be marked as hidden to a screen reader. --- ...moodle-core-notification-dialogue-debug.js | 77 ++++++++++++++++++- .../moodle-core-notification-dialogue-min.js | 4 +- .../moodle-core-notification-dialogue.js | 77 ++++++++++++++++++- lib/yui/src/notification/js/dialogue.js | 77 ++++++++++++++++++- 4 files changed, 230 insertions(+), 5 deletions(-) diff --git a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js index f8a57da21bb..6997d553683 100644 --- a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js +++ b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js @@ -57,7 +57,7 @@ DIALOGUE = function(c) { config.COUNT = Y.stamp(this); var id = 'moodle-dialogue-' + config.COUNT; config.notificationBase = - Y.Node.create('
') + Y.Node.create('