mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Menu items in frontend now render icons with aria-hidden="true" for accessibility (fixes #1629)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user