From bd1c6fa0c8e8804d59978cad5bf0c8e476d8d3ca Mon Sep 17 00:00:00 2001 From: Adeel Khan Date: Tue, 4 Dec 2018 01:19:57 +0500 Subject: [PATCH] Adds selection state to elements for screenreader Dashboard header was missing aria-current and aria-selected attributes causing no information exposed to screen reader about selection.This would enable such info to be passed to screen reader LEARNER-6611 --- .../header/navbar-authenticated.html | 27 ++++++++++++------- package-lock.json | 4 +-- .../header/navbar-authenticated.html | 12 ++++++--- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/lms/templates/header/navbar-authenticated.html b/lms/templates/header/navbar-authenticated.html index 79a7040634..5b2242e8e4 100644 --- a/lms/templates/header/navbar-authenticated.html +++ b/lms/templates/header/navbar-authenticated.html @@ -30,33 +30,40 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
% if show_dashboard_tabs: % if show_program_listing: % endif % if show_journal_listing: % endif % endif % if show_explore_courses: % endif % if show_sysadmin_dashboard: diff --git a/package-lock.json b/package-lock.json index 1cfbc5a5f0..0cab901273 100644 --- a/package-lock.json +++ b/package-lock.json @@ -441,7 +441,7 @@ "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha1-aALmJk79GMeQobDVF/DyYnvyyUo=" + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "are-we-there-yet": { "version": "1.1.4", @@ -14485,7 +14485,7 @@ "wide-align": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha1-Vx4PGwYEY268DfwhsDObvjE0FxA=", + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", "requires": { "string-width": "1.0.2" } diff --git a/themes/edx.org/lms/templates/header/navbar-authenticated.html b/themes/edx.org/lms/templates/header/navbar-authenticated.html index 004cb919e3..c4d81f4690 100644 --- a/themes/edx.org/lms/templates/header/navbar-authenticated.html +++ b/themes/edx.org/lms/templates/header/navbar-authenticated.html @@ -33,26 +33,30 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ % endif % if show_dashboard_tabs: % if show_program_listing: % endif % if show_journal_listing: % endif