We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf5f39d + 450424f commit ef9a21dCopy full SHA for ef9a21d
docs/.vuepress/theme/components/ColorModeSwitch.vue
@@ -3,7 +3,9 @@
3
@click="handleClick"
4
class="dark-mode-toggle"
5
:class="{ 'dark': on, 'light': ! on }"
6
- :aria-label="`Switch dark/light mode`"
+ role="switch"
7
+ :aria-label="`Dark mode`"
8
+ :aria-checked="on ? 'true' : 'false'"
9
>
10
<div class="backdrop relative w-full h-full">
11
<div class="knob"></div>
0 commit comments