mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 19:58:09 +08:00
fix(components): [checkbox] indeterminate checkbox a11y fix (#14322)
This commit is contained in:
parent
942284dbe1
commit
9e08fef52c
@ -5,19 +5,14 @@
|
||||
:aria-controls="indeterminate ? controls : null"
|
||||
@click="onClickRoot"
|
||||
>
|
||||
<span
|
||||
:class="spanKls"
|
||||
:tabindex="indeterminate ? 0 : undefined"
|
||||
:role="indeterminate ? 'checkbox' : undefined"
|
||||
:aria-checked="indeterminate ? 'mixed' : undefined"
|
||||
>
|
||||
<span :class="spanKls">
|
||||
<input
|
||||
v-if="trueLabel || falseLabel"
|
||||
:id="inputId"
|
||||
v-model="model"
|
||||
:class="ns.e('original')"
|
||||
type="checkbox"
|
||||
:aria-hidden="indeterminate ? 'true' : 'false'"
|
||||
:indeterminate="indeterminate"
|
||||
:name="name"
|
||||
:tabindex="tabindex"
|
||||
:disabled="isDisabled"
|
||||
@ -34,7 +29,7 @@
|
||||
v-model="model"
|
||||
:class="ns.e('original')"
|
||||
type="checkbox"
|
||||
:aria-hidden="indeterminate ? 'true' : 'false'"
|
||||
:indeterminate="indeterminate"
|
||||
:disabled="isDisabled"
|
||||
:value="label"
|
||||
:name="name"
|
||||
|
Loading…
Reference in New Issue
Block a user