Skip to content

Commit 14f9053

Browse files
committed
a11y: remove explicit tabindex on buttons
Signed-off-by: David Karlsson <[email protected]>
1 parent 723006b commit 14f9053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="mx-auto flex h-full max-w-[1400px] items-center justify-between">
33
<div class="flex h-full items-center gap-8 md:gap-2">
44
{{ if not .IsHome }}
5-
<button x-data tabindex="4" @click="() => {
5+
<button x-data @click="() => {
66
$store.showSidebar = ! $store.showSidebar;
77
const sidebar = document.querySelector('#sidebar');
88
if ($store.showSidebar) {
@@ -26,7 +26,7 @@
2626
</div>
2727
<div class="flex items-center gap-6">
2828
<div id="docsearch"></div>
29-
<button id="theme-switch" tabindex="1" class="svg-icon"
29+
<button id="theme-switch" class="svg-icon"
3030
x-data="{ theme: localStorage.getItem('theme-preference') }" x-init="$watch('theme', value => {
3131
localStorage.setItem('theme-preference', value);
3232
document.firstElementChild.className = value;

0 commit comments

Comments
 (0)