Fixed navigation expander not being focusable with keyboard

This commit is contained in:
squidfunk 2023-09-23 09:32:10 +02:00
parent 208ac1ac3a
commit 8e019d23b6
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -158,7 +158,12 @@
<!-- Only render toggle if there's at least one more page -->
{% if nav_item.children | length > 1 %}
<label class="md-nav__link {{ class }}" for="{{ path }}">
<label
class="md-nav__link {{ class }}"
for="{{ path }}"
id="{{ path }}_label"
tabindex="0"
>
<span class="md-nav__icon md-icon"></span>
</label>
{% endif %}