From 79803baf11ab56ee237494c0676c1ba636928c36 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: Thu, 4 Aug 2022 17:17:49 +0300 Subject: [PATCH] SelectButton | hidden checkbox and radio roles added --- api-generator/components/selectbutton.js | 6 ++ src/components/selectbutton/SelectButton.d.ts | 4 + src/components/selectbutton/SelectButton.vue | 98 +++++++++++++++---- src/views/selectbutton/SelectButtonDemo.vue | 12 +-- src/views/selectbutton/SelectButtonDoc.vue | 62 +++++++----- 5 files changed, 137 insertions(+), 45 deletions(-) diff --git a/api-generator/components/selectbutton.js b/api-generator/components/selectbutton.js index e63a2062e..427a71ac9 100644 --- a/api-generator/components/selectbutton.js +++ b/api-generator/components/selectbutton.js @@ -46,6 +46,12 @@ const SelectButtonProps = [ type: "string", default: "null", description: "A property to uniquely identify an option." + }, + { + name: "aria-labelledby", + type: "string", + default: "null", + description: "Identifier of the underlying element." } ]; diff --git a/src/components/selectbutton/SelectButton.d.ts b/src/components/selectbutton/SelectButton.d.ts index b3ed0b168..3ee6a7344 100755 --- a/src/components/selectbutton/SelectButton.d.ts +++ b/src/components/selectbutton/SelectButton.d.ts @@ -51,6 +51,10 @@ export interface SelectButtonProps { * A property to uniquely identify an option. */ dataKey?: string | undefined; + /** + * Identifier of the underlying element. + */ + "aria-labelledby"?: string | undefined; } export interface SelectButtonSlots { diff --git a/src/components/selectbutton/SelectButton.vue b/src/components/selectbutton/SelectButton.vue index 20b7245c0..2a8015873 100755 --- a/src/components/selectbutton/SelectButton.vue +++ b/src/components/selectbutton/SelectButton.vue @@ -1,8 +1,7 @@