From 96f6fc9d82df399490b1922c3df23cf10e131f1b 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: Wed, 27 Jul 2022 11:47:12 +0300 Subject: [PATCH] aria-labelledby and aria-label props added --- api-generator/components/chips.js | 12 ------------ src/components/calendar/Calendar.d.ts | 11 ++++++++--- src/components/calendar/Calendar.vue | 10 +++++++++- src/components/cascadeselect/CascadeSelect.d.ts | 9 +++++++++ src/components/cascadeselect/CascadeSelect.vue | 12 ++++++++++-- src/components/inputnumber/InputNumber.d.ts | 8 ++++++++ src/components/inputnumber/InputNumber.vue | 12 ++++++++++-- src/components/inputswitch/InputSwitch.d.ts | 8 ++++++++ src/components/inputswitch/InputSwitch.vue | 12 ++++++++++-- src/components/password/Password.d.ts | 8 ++++++++ src/components/password/Password.vue | 12 ++++++++++-- src/components/radiobutton/RadioButton.d.ts | 8 ++++++++ src/components/radiobutton/RadioButton.vue | 10 +++++++++- 13 files changed, 107 insertions(+), 25 deletions(-) diff --git a/api-generator/components/chips.js b/api-generator/components/chips.js index ec01f016c..1356ae366 100644 --- a/api-generator/components/chips.js +++ b/api-generator/components/chips.js @@ -52,18 +52,6 @@ const ChipsProps = [ type: "any", default: "null", description: "Inline style of the input field." - }, - { - name: "'aria-labelledby'", - type: "string", - default: "null", - description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs." - }, - { - name: "'aria-label'", - type: "string", - default: "null", - description: "Establishes a string value that labels the component." } ]; diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index 46c4a5cf7..627f3324e 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -263,13 +263,18 @@ export interface CalendarProps { * */ inputProps?: object | undefined; - /** - * Unique identifier of the element. - */ /** * */ panelProps?: object | undefined; + /** + * Establishes relationships between the component and label(s) where its value should be one or more element IDs. + */ + 'aria-labelledby'?: string | undefined; + /** + * Establishes a string value that labels the component. + */ + 'aria-label'?: string | undefined; } export interface CalendarSlots { diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 3558fa428..83db6d1d0 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -1,7 +1,7 @@