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-05 10:26:13 +0300
committerTassoman <tassoman@gmail.com>2015-11-06 14:10:39 +0300
commitf21d4cbf6da1b20453e911363bbce85674b34b5a (patch)
tree34cd36f70263b54d16508303b7e1bfe7db9d8930
parent523e62dd6d2facad9e000da4256a13008ee04162 (diff)
A11y improvement by WAI-ARIA integration inside sidebar menu
-rw-r--r--plugins/CoreHome/templates/_menu.twig7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/CoreHome/templates/_menu.twig b/plugins/CoreHome/templates/_menu.twig
index 5cb95fe54b..4c4643723d 100644
--- a/plugins/CoreHome/templates/_menu.twig
+++ b/plugins/CoreHome/templates/_menu.twig
@@ -2,7 +2,7 @@
{% if name|slice(0,1) != '_' %}
<li role="menuitem" title="{{ name|translate|e('html_attr') }}">
<a class="item" href="{% if anchorlink %}#{% else %}index.php?{% endif %}{{ url|urlRewriteWithParameters|slice(1) }}">
- {{ name|translate|e('html_attr') }}
+ {{ name|translate }}
</a>
</li>
{% endif %}
@@ -15,7 +15,7 @@
<a class="item menuItem"
href='{% if anchorlink %}#?{% else %}index.php?{% endif %}{{ item.url|urlRewriteWithParameters|slice(1) }}'
{% if item.tooltip %}title="{{ item.tooltip|e('html_attr') }}"{% endif %}>
- {{ item.name|translate|e('html_attr') }}
+ {{ item.name|translate }}
</a>
{% endfor %}
</div>
@@ -47,8 +47,7 @@
{% if hasSubmenuItem %}
<li role="menuitem" class="menuTab" title="{{ level1|translate|e('html_attr') }}" id="{% if level2._url is defined and level2._url is not empty %}{{ _self.getId(level2._url) }}{% endif %}">
<a class="item" href="">
- <span class="menu-icon {{ level2._icon|default('icon-arrow-right') }}"></span>
- {{ level1|translate|e('html_attr') }}
+ <span class="menu-icon {{ level2._icon|default('icon-arrow-right') }}"></span>{{ level1|translate }}
</a>
<ul role="menu" title="{{ level1|translate|e('html_attr') }}">