Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTassoman <tassoman@gmail.com>2015-11-26 16:29:01 +0300
committerTassoman <tassoman@gmail.com>2015-11-26 16:29:01 +0300
commit4b28debc773131512a633965ab85ea96ba0de095 (patch)
treefda8a2a5e12d7b0bf42f04b63c13c62e744618df /plugins/CoreHome
parent22e1cf27e354e3b0094851ac9746cf76ef6e8358 (diff)
Adding WAI-ARIA roles menubar and menuitem inside tobBar template
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r--plugins/CoreHome/templates/_topBar.twig4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/templates/_topBar.twig b/plugins/CoreHome/templates/_topBar.twig
index e69e9c1978..c1158f46bb 100644
--- a/plugins/CoreHome/templates/_topBar.twig
+++ b/plugins/CoreHome/templates/_topBar.twig
@@ -1,5 +1,5 @@
{{ postEvent("Template.beforeTopBar", userAlias, userLogin, topMenu, userMenu) }}
-<ul class="navbar-right">
+<ul role="menubar" class="navbar-right">
{% macro menuItemLabel(label, icon) %}
{% if icon is defined and icon and icon starts with 'icon-' %}
@@ -27,7 +27,7 @@
{% spaceless %}
{% for label,menu in topMenu %}
- <li>{{ _self.topMenuItem(label, menu, topMenuModule, topMenuAction) }}</li>
+ <li role="menuitem">{{ _self.topMenuItem(label, menu, topMenuModule, topMenuAction) }}</li>
{% endfor %}
{% endspaceless %}