Skip to content

Commit c1cd9f7

Browse files
committed
a11y: add aria label to theme switch button
Signed-off-by: David Karlsson <[email protected]>
1 parent 14f9053 commit c1cd9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</div>
2727
<div class="flex items-center gap-6">
2828
<div id="docsearch"></div>
29-
<button id="theme-switch" class="svg-icon"
29+
<button aria-label="Theme switch" 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)