diff --git a/src/components/switch/switch.vue b/src/components/switch/switch.vue index 7e9f19e9..5f2e3c91 100644 --- a/src/components/switch/switch.vue +++ b/src/components/switch/switch.vue @@ -1,5 +1,10 @@ <template> - <span :class="wrapClasses" @click="toggle"> + <span + tabindex="0" + :class="wrapClasses" + @click="toggle" + @keydown.space="toggle" + > <input type="hidden" :name="name" :value="currentValue"> <span :class="innerClasses"> <slot name="open" v-if="currentValue === trueValue"></slot>