From 4b175716443b355faf3a40283ab46165dd095ffe 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: Fri, 22 Jul 2022 13:56:18 +0300 Subject: [PATCH] Refactor Accessibility for tree components --- src/components/cascadeselect/CascadeSelect.d.ts | 8 ++++++++ src/components/cascadeselect/CascadeSelect.vue | 5 +++-- src/components/cascadeselect/CascadeSelectSub.vue | 2 +- src/components/tree/Tree.vue | 4 ++-- src/components/treeselect/TreeSelect.vue | 3 ++- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/cascadeselect/CascadeSelect.d.ts b/src/components/cascadeselect/CascadeSelect.d.ts index fe965eeb6..01a22f31d 100644 --- a/src/components/cascadeselect/CascadeSelect.d.ts +++ b/src/components/cascadeselect/CascadeSelect.d.ts @@ -74,6 +74,10 @@ export interface CascadeSelectProps { * Identifier of the underlying input element. */ inputId?: string | undefined; + /** + * + */ + inputProps?: object | undefined; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself. * @see CascadeSelectAppendToType @@ -84,6 +88,10 @@ export interface CascadeSelectProps { * Style class of the overlay panel. */ panelClass?: any; + /** + * + */ + panelProps?: object | undefined; /** * Whether the dropdown is in loading state. */ diff --git a/src/components/cascadeselect/CascadeSelect.vue b/src/components/cascadeselect/CascadeSelect.vue index 7afa26532..31b773bc0 100644 --- a/src/components/cascadeselect/CascadeSelect.vue +++ b/src/components/cascadeselect/CascadeSelect.vue @@ -16,9 +16,9 @@ -
+
- @@ -63,6 +63,7 @@ export default { default: 'body' }, panelClass: null, + panelProps: null, loading: { type: Boolean, default: false diff --git a/src/components/cascadeselect/CascadeSelectSub.vue b/src/components/cascadeselect/CascadeSelectSub.vue index 5fb9c8b78..110b09f7d 100644 --- a/src/components/cascadeselect/CascadeSelectSub.vue +++ b/src/components/cascadeselect/CascadeSelectSub.vue @@ -1,5 +1,5 @@