From 74093760d5a0905ccc6e234f2ed83b4329dc8329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 27 Jun 2022 12:05:45 +0300 Subject: [PATCH] Accessibility for InputSwitch --- api-generator/components/inputswitch.js | 6 +++ src/components/inputswitch/InputSwitch.d.ts | 4 ++ src/components/inputswitch/InputSwitch.vue | 10 +++-- src/views/inputswitch/InputSwitchDoc.vue | 45 +++++++++++++++++++++ 4 files changed, 62 insertions(+), 3 deletions(-) diff --git a/api-generator/components/inputswitch.js b/api-generator/components/inputswitch.js index b05d8b32d..39e95c9a3 100644 --- a/api-generator/components/inputswitch.js +++ b/api-generator/components/inputswitch.js @@ -17,6 +17,12 @@ const InputSwitchProps = [ default: "null", description: "Inline of the component." }, + { + name: "tabindex", + type: "number", + default: "null", + description: "Index of the element in tabbing order." + }, { name: "trueValue", type: "any", diff --git a/src/components/inputswitch/InputSwitch.d.ts b/src/components/inputswitch/InputSwitch.d.ts index a4723b9ac..546a7b516 100755 --- a/src/components/inputswitch/InputSwitch.d.ts +++ b/src/components/inputswitch/InputSwitch.d.ts @@ -13,6 +13,10 @@ export interface InputSwitchProps { * Style class of the component input field. */ style?: any; + /** + * Index of the element in tabbing order. + */ + tabindex?: number; /** * Value in checked state. */ diff --git a/src/components/inputswitch/InputSwitch.vue b/src/components/inputswitch/InputSwitch.vue index 2eabc20ae..b4e288b95 100755 --- a/src/components/inputswitch/InputSwitch.vue +++ b/src/components/inputswitch/InputSwitch.vue @@ -1,8 +1,8 @@