Skip to content

Commit bd46db4

Browse files
authored
Add aria-label to theme toggle button for accessibility (#1669)
1 parent f84eeba commit bd46db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{{- end }}
7575
<div class="logo-switches">
7676
{{- if (not site.Params.disableThemeToggle) }}
77-
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
77+
<button id="theme-toggle" accesskey="t" title="(Alt + T)" aria-label="Toggle theme">
7878
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
7979
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
8080
stroke-linejoin="round">

0 commit comments

Comments
 (0)