From 4b8162a341541731b459e70d75fc7032aea49291 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 14:50:02 +0300 Subject: [PATCH] Accessibility for RadioButton --- api-generator/components/radiobutton.js | 6 ++ src/components/radiobutton/RadioButton.d.ts | 4 ++ src/components/radiobutton/RadioButton.vue | 12 +++- src/views/radiobutton/RadioButtonDemo.vue | 2 +- src/views/radiobutton/RadioButtonDoc.vue | 67 ++++++++++++++++++--- 5 files changed, 80 insertions(+), 11 deletions(-) diff --git a/api-generator/components/radiobutton.js b/api-generator/components/radiobutton.js index 9a4f2aa7c..b68952b81 100644 --- a/api-generator/components/radiobutton.js +++ b/api-generator/components/radiobutton.js @@ -11,6 +11,12 @@ const RadioButtonProps = [ default: "null", description: "Value binding of the checkbox." }, + { + name: "tabindex", + type: "number", + default: "null", + description: "Index of the element in tabbing order." + }, { name: "class", type: "string", diff --git a/src/components/radiobutton/RadioButton.d.ts b/src/components/radiobutton/RadioButton.d.ts index 0b14d5dd8..5dc6b7af7 100755 --- a/src/components/radiobutton/RadioButton.d.ts +++ b/src/components/radiobutton/RadioButton.d.ts @@ -9,6 +9,10 @@ export interface RadioButtonProps { * Value binding of the checkbox. */ modelValue?: any; + /** + * Index of the element in tabbing order. + */ + tabindex?: number; /** * Style class of the component input field. */ diff --git a/src/components/radiobutton/RadioButton.vue b/src/components/radiobutton/RadioButton.vue index 00a6d6060..6aa503479 100755 --- a/src/components/radiobutton/RadioButton.vue +++ b/src/components/radiobutton/RadioButton.vue @@ -1,9 +1,9 @@