a11y: remove explicit tabindex on buttons

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-02-03 17:03:48 +01:00
parent 723006b12b
commit 14f905327b
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="mx-auto flex h-full max-w-[1400px] items-center justify-between">
<div class="flex h-full items-center gap-8 md:gap-2">
{{ if not .IsHome }}
<button x-data tabindex="4" @click="() => {
<button x-data @click="() => {
$store.showSidebar = ! $store.showSidebar;
const sidebar = document.querySelector('#sidebar');
if ($store.showSidebar) {
@ -26,7 +26,7 @@
</div>
<div class="flex items-center gap-6">
<div id="docsearch"></div>
<button id="theme-switch" tabindex="1" class="svg-icon"
<button id="theme-switch" class="svg-icon"
x-data="{ theme: localStorage.getItem('theme-preference') }" x-init="$watch('theme', value => {
localStorage.setItem('theme-preference', value);
document.firstElementChild.className = value;