From f708806118b2952cefebf395cfdf4e9ccde14cdb Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Mon, 9 Sep 2013 08:17:15 -0300 Subject: [PATCH 1/6] accessibility: Add `aria-describedby` to login/forgot password (LMS-602) Also adding the email description to the login page and applying the same aria attribute to the correspondin input on that page. From LMS-602: > There is additional explanatory text, marked up in a span element after > the email input. The input elements should be explicitly associated with > this additional text using the aria-describedby attribute. This will > require an ID to be assigned to the span element. --- lms/templates/forgot_password_modal.html | 4 ++-- lms/templates/login.html | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lms/templates/forgot_password_modal.html b/lms/templates/forgot_password_modal.html index e4c0c02e33..0c3a971ecc 100644 --- a/lms/templates/forgot_password_modal.html +++ b/lms/templates/forgot_password_modal.html @@ -19,8 +19,8 @@
  1. - - ${_("This is the email address you used to register with {platform}").format(platform=settings.PLATFORM_NAME)} + + ${_("This is the e-mail address you used to register with {platform}").format(platform=settings.PLATFORM_NAME)}
diff --git a/lms/templates/login.html b/lms/templates/login.html index b737255a0d..5fbc64d304 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -113,7 +113,8 @@
  1. - + + ${_("This is the e-mail address you used to register with {platform}").format(platform=settings.PLATFORM_NAME)}
  2. From 9147051e7a5354eda5ae1ccf963c05ba013c8680 Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Mon, 9 Sep 2013 11:49:26 -0300 Subject: [PATCH 2/6] accessibility: Focus on error messages in Help modal (LMS-584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > To make this change explicit to assistive technology, focus should be > moved programmatically to this div after it has been made visible. To > allow the div to be focused via scripting (without adding it to the > regular focus order that keyboard users cycle through), a tabindex=”-1” > should be added. > In addition, the invalid fields should be given a an > aria-invalid="true" attribute. --- lms/templates/help_modal.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html index a0a0eca9c3..0e9c7c24f5 100644 --- a/lms/templates/help_modal.html +++ b/lms/templates/help_modal.html @@ -60,7 +60,7 @@ discussion_link = get_discussion_link(course) if course else None