Skip to content

Commit 983932b

Browse files
committed
Fixed accessibility issues
1 parent f47e2c4 commit 983932b

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

dist/index.js

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ssr.index.js

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Button.vue

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
2-
<label :class="className"
3-
role="checkbox">
2+
<label role="checkbox"
3+
:class="className"
4+
:aria-checked="ariaChecked">
45
<input type="checkbox"
56
class="v-switch-input"
67
@change.stop="toggle">
78
<div class="v-switch-core"
8-
:style="coreStyle"
9-
:aria-checked="ariaChecked">
9+
:style="coreStyle">
1010
<div class="v-switch-button"
1111
:style="buttonStyle"/>
1212
</div>
@@ -89,10 +89,7 @@ export default {
8989
className () {
9090
let { toggled, disabled } = this
9191
92-
return [
93-
'vue-js-switch',
94-
{ toggled, disabled }
95-
]
92+
return ['vue-js-switch', { toggled, disabled }]
9693
},
9794
9895
ariaChecked () {

0 commit comments

Comments
 (0)