Set tabindex to 0 for skip to content link (#1393)

see https://web.dev/control-focus-with-tabindex/
This commit is contained in:
Benjamin Staneck 2019-12-21 17:45:00 +01:00 committed by Martin Donath
parent 72891b8bcb
commit 98b11c1ad9

View File

@ -228,7 +228,7 @@
<!-- Render "skip to content" link -->
{% if page.toc | first is defined %}
<a href="{{ (page.toc | first).url }}" tabindex="1"
<a href="{{ (page.toc | first).url }}" tabindex="0"
class="md-skip">
{{ lang.t('skip.link.title') }}
</a>