Added tabindex value to links in the sidebar.

The tabindexes are reseted for each panel, beginning with 1. Because
of the accordion nature of the interface only the links of one of them
will be visible at any given time (the elementts with display:none
will not be focusable).

Change-Id: I3556a3f5b3b2db13c77ed6434b3f54ca7a530dc4
Closes-Bug: #1308442
This commit is contained in:
Federico Gimenez Nieto 2014-04-27 09:08:15 +00:00
parent 84ca8a9da8
commit c59e154c91
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
{% endif %}
<ul>
{% for panel in filtered_panels %}
<li><a href="{{ panel.get_absolute_url }}" {% if current.slug == dashboard.slug and current_panel == panel.slug %}class="active"{% endif %} >{{ panel.name }}</a></li>
<li><a href="{{ panel.get_absolute_url }}" {% if current.slug == dashboard.slug and current_panel == panel.slug %}class="active"{% endif %} tabindex="{{ forloop.counter }}" >{{ panel.name }}</a></li>
{% endfor %}
</ul>
{% if heading %}