Skip to content
Snippets Groups Projects
Commit c4375342 authored by Loc Nguyen's avatar Loc Nguyen
Browse files

add aria labels

parent 934e541a
No related branches found
No related tags found
2 merge requests!478Automated merge from preview to main,!460fix accessability issues
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
{% endif %} {% endif %}
<!-- Expand active pages --> <!-- Expand active pages -->
<label class="md-nav__link" for="{{ path }}" tabindex="0"> <label class="md-nav__link" for="{{ path }}" tabindex="0" aria-haspopup="true">
{{ nav_item.title }} {{ nav_item.title }}
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
</label> </label>
...@@ -73,8 +73,12 @@ ...@@ -73,8 +73,12 @@
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
{{ nav_item.title }} {{ nav_item.title }}
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul
class="md-nav__list"
data-md-scrollfix
aria-hidden="true"
aria-expanded="false"
>
<!-- Render nested item list --> <!-- Render nested item list -->
{% for nav_item in nav_item.children %} {% for nav_item in nav_item.children %}
{{ render(nav_item, path ~ "_" ~ loop.index, level + 1) }} {{ render(nav_item, path ~ "_" ~ loop.index, level + 1) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment