Commit 071e44ba authored by GU Yiling's avatar GU Yiling Committed by 杨奕

a11y: add aria-hidden for checkbox/radio (#10771)

parent f530bffa
......@@ -26,6 +26,7 @@
v-if="trueLabel || falseLabel"
class="el-checkbox__original"
type="checkbox"
aria-hidden="true"
:name="name"
:disabled="isDisabled"
:true-value="trueLabel"
......@@ -38,6 +39,7 @@
v-else
class="el-checkbox__original"
type="checkbox"
aria-hidden="true"
:disabled="isDisabled"
:value="label"
:name="name"
......
......@@ -25,6 +25,7 @@
class="el-radio__original"
:value="label"
type="radio"
aria-hidden="true"
v-model="model"
@focus="focus = true"
@blur="focus = false"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment