Menu items in frontend now render icons with aria-hidden="true" for accessibility (fixes #1629)

This commit is contained in:
Djamil Legato
2017-01-24 18:19:37 -08:00
parent 0ac2888abf
commit f60c680cb6
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -9,6 +9,8 @@
- Add support for `{% pageblock bottom %}...{% endpageblock %}` to add HTML into the page (#1161)
- where first parameter is one of: `body_top` | `top` | `bottom` | `body_bottom`
- supports also `with { priority: n }` to set the priority for the block (recommended range 10 ... -10)
1. [](#improved)
- Menu items in frontend now render icons with `aria-hidden="true"` for accessibility (#1629)
1. [](#bugfix)
- Fixed a bug in `|html` filter
- Fixed wrong ordering of custom CSS/JS assets
@@ -51,7 +51,7 @@
{% if item.image %}
<img src="{{ url(item.image) }}" alt="{{ item.title }}" />
{% elseif item.icon %}
<i class="{{ item.icon }}"></i>
<i class="{{ item.icon }}" aria-hidden="true"></i>
{% endif %}
{% if item.url %}
<span class="g-menu-item-content">