Skip to content

Commit 8e019d2

Browse files
committed
Fixed navigation expander not being focusable with keyboard
1 parent 208ac1a commit 8e019d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/templates/partials/nav-item.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,12 @@
158158

159159
<!-- Only render toggle if there's at least one more page -->
160160
{% if nav_item.children | length > 1 %}
161-
<label class="md-nav__link {{ class }}" for="{{ path }}">
161+
<label
162+
class="md-nav__link {{ class }}"
163+
for="{{ path }}"
164+
id="{{ path }}_label"
165+
tabindex="0"
166+
>
162167
<span class="md-nav__icon md-icon"></span>
163168
</label>
164169
{% endif %}

0 commit comments

Comments
 (0)