Commit 485e2ba1 by Anjali Pal

Add accessible menu names

parent aaf5ea73
...@@ -36,6 +36,7 @@ Partial: App-wide header element ...@@ -36,6 +36,7 @@ Partial: App-wide header element
<li class="dropdown"> <li class="dropdown">
<button class="dropdown-toggle active-user navbar-link" data-toggle="dropdown" <button class="dropdown-toggle active-user navbar-link" data-toggle="dropdown"
aria-controls="userDropdownMenu" id="userMenu"> aria-controls="userDropdownMenu" id="userMenu">
<span class="sr-only">{% trans "Menu for" %}</span>
<span class="ico-user fa fa-graduation-cap" aria-hidden="true"></span> <span class="ico-user fa fa-graduation-cap" aria-hidden="true"></span>
<span class="active-user-name">{{ request.user.username }}</span> <span class="active-user-name">{{ request.user.username }}</span>
<span class="ico ico-indicator fa fa-caret-down" aria-hidden="true"></span> <span class="ico ico-indicator fa fa-caret-down" aria-hidden="true"></span>
......
...@@ -12,6 +12,7 @@ Partial for displaying the lens navigation and the sections within the lenses. ...@@ -12,6 +12,7 @@ Partial for displaying the lens navigation and the sections within the lenses.
<button class="dropdown-toggle navbar-link" data-toggle="dropdown" id="lensPrimaryMenu" <button class="dropdown-toggle navbar-link" data-toggle="dropdown" id="lensPrimaryMenu"
aria-controls="lensDropdownMenu"> aria-controls="lensDropdownMenu">
<span class="link-label"> <span class="link-label">
<span class="sr-only">{% trans "Lens Menu." %}</span>
<span class="ico fa {{ primary_nav_item.icon }}" aria-hidden="true"></span> <span class="ico fa {{ primary_nav_item.icon }}" aria-hidden="true"></span>
{{ primary_nav_item.label }} {{ primary_nav_item.label }}
{# Translators: This refers to the active tab/navigation item. #} {# Translators: This refers to the active tab/navigation item. #}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment