Skip to content

Commit

Permalink
Accessibility enhancement
Browse files Browse the repository at this point in the history
Add the attributes `tabindex` to the tab of the statistics page to make then accessible from the keyboard.
  • Loading branch information
arobase-che authored and Situphen committed Dec 18, 2018
1 parent b619894 commit d825eeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/tutorialv2/stats/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ <h2 class="ico-after ico-tutorials">

<!-- Tab links -->
<div class="tab">
<span class="tablinks" id="tab-view-graph">{% trans "Pages vues" %}</span>
<span class="tablinks" id="tab-visit-time-graph">{% trans "Temps de lecture" %}</span>
<span class="tablinks" id="tab-users-graph">{% trans "Nombre de visiteurs" %}</span>
<span class="tablinks" id="tab-new-users-graph">{% trans "Nombre de nouveaux visiteurs" %}</span>
<span class="tablinks" id="tab-sessions-graph">{% trans "Nombre de sessions" %}</span>
<span class="tablinks" tabindex="0" id="tab-view-graph">{% trans "Pages vues" %}</span>
<span class="tablinks" tabindex="0" id="tab-visit-time-graph">{% trans "Temps de lecture" %}</span>
<span class="tablinks" tabindex="0" id="tab-users-graph">{% trans "Nombre de visiteurs" %}</span>
<span class="tablinks" tabindex="0" id="tab-new-users-graph">{% trans "Nombre de nouveaux visiteurs" %}</span>
<span class="tablinks" tabindex="0" id="tab-sessions-graph">{% trans "Nombre de sessions" %}</span>
</div>
<!-- Tab content -->
{% include "misc/graph.part.html" with tab_name="tab-view-graph-content" graph_title="Évolution des pages vues sur le contenu" canvas_id="view-graph" metric="pageviews" %}
Expand Down

0 comments on commit d825eeb

Please sign in to comment.