From b89c28dccb09080379f4a3e5d535fb7ead434f0d Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Thu, 2 May 2024 20:18:21 +0600 Subject: [PATCH 1/3] chore: accessbility updates to form elements --- src/components/smart/AutoComplete.vue | 14 +++++++- src/components/smart/Checkbox.vue | 33 +++++++++++-------- src/components/smart/Input.vue | 7 ++-- src/components/smart/Link.vue | 47 +++++++++++++++++++-------- 4 files changed, 71 insertions(+), 30 deletions(-) diff --git a/src/components/smart/AutoComplete.vue b/src/components/smart/AutoComplete.vue index de02f38..18396a0 100644 --- a/src/components/smart/AutoComplete.vue +++ b/src/components/smart/AutoComplete.vue @@ -14,13 +14,25 @@ @click="updateSuggestions" @keydown="handleKeystroke" @change="emit('change', $event)" + role="combobox" + aria-autocomplete="list" + aria-haspopup="true" + aria-expanded="false" + aria-controls="autocomplete-suggestions" /> -