File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7
7
{ 'is-bordered': border },
8
8
{ 'is-checked': isChecked }
9
9
]"
10
- role =" checkbox"
11
- :aria-checked =" indeterminate ? 'mixed': isChecked"
12
- :aria-disabled =" isDisabled"
13
10
:id =" id"
14
11
>
15
12
<span class =" el-checkbox__input"
19
16
'is-indeterminate': indeterminate,
20
17
'is-focus': focus
21
18
}"
22
- aria-checked =" mixed"
19
+ :tabindex =" indeterminate ? 0 : false"
20
+ :role =" indeterminate ? checkbox : false"
21
+ :aria-checked =" indeterminate ? 'mixed' : false"
23
22
>
24
23
<span class =" el-checkbox__inner" ></span >
25
24
<input
26
25
v-if =" trueLabel || falseLabel"
27
26
class =" el-checkbox__original"
28
27
type =" checkbox"
29
- aria-hidden =" true"
28
+ : aria-hidden =" indeterminate ? ' true' : 'false' "
30
29
:name =" name"
31
30
:disabled =" isDisabled"
32
31
:true-value =" trueLabel"
39
38
v-else
40
39
class =" el-checkbox__original"
41
40
type =" checkbox"
42
- aria-hidden =" true"
41
+ : aria-hidden =" indeterminate ? ' true' : 'false' "
43
42
:disabled =" isDisabled"
44
43
:value =" label"
45
44
:name =" name"
You can’t perform that action at this time.
0 commit comments