From 864a7e944d0b9c38c72a9bc6b16e96ebc7ce7ea8 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 14 Dec 2023 21:38:13 -0800 Subject: [PATCH 1/6] enh(a11y): Improve accessibility with correct attributes - Move accessibility attributes from wrapper to input - Move uid from dropdown toggle element id to wrapper - Wrap open indicator icon with button element - Handle toggle dropdown on selected options to not conflict with open indicator button - Label listbox element Signed-off-by: Christopher Ng --- src/components/Select.vue | 69 ++++++++++++++++------- src/css/global/states.css | 1 + src/css/modules/open-indicator-button.css | 8 +++ src/css/vue-select.css | 1 + 4 files changed, 58 insertions(+), 21 deletions(-) create mode 100644 src/css/modules/open-indicator-button.css diff --git a/src/components/Select.vue b/src/components/Select.vue index f836f3f8b..a0360b79a 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -3,19 +3,19 @@