From aee5af533273fb92e997cacfe89576871919511b Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Mon, 9 Sep 2013 17:49:50 -0300 Subject: [PATCH] accessibility: Manage keyboard focus on help modal dialog (LMS-581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modal dialogs should manage keyboard focus, ensuring that users can't tab out of the modal dialog and back into the page itself (effectively moving “behind” the dimmed modal). On the last focusable element of the dialog, return focus back to the first focusable element. Also move the close button to the start of the dialog's section, making it the first focusable URL, to ensure focus matches the visual representation of the dialog. --- lms/templates/help_modal.html | 42 ++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html index 22e7176cc4..3875240696 100644 --- a/lms/templates/help_modal.html +++ b/lms/templates/help_modal.html @@ -14,6 +14,9 @@