From f0d09cf583a972d2e3be8eb7d9755966f79a6148 Mon Sep 17 00:00:00 2001 From: Anne Lyttle Date: Wed, 6 Nov 2024 15:51:45 -0800 Subject: [PATCH] BOAC-5729: wraps v-autocomplete with accessibility --- bea/pages/search_form.py | 4 +- src/components/search/AdvancedSearch.vue | 1 + src/components/search/AdvancedSearchModal.vue | 179 ++++++------------ src/components/util/AccessibleCombobox.vue | 74 +++++++- 4 files changed, 128 insertions(+), 130 deletions(-) diff --git a/bea/pages/search_form.py b/bea/pages/search_form.py index 86895b125..a511be304 100644 --- a/bea/pages/search_form.py +++ b/bea/pages/search_form.py @@ -172,8 +172,8 @@ def select_notes_posted_by_your_dept(self): # Author / Student - NOTE_AUTHOR = (By.ID, 'search-options-note-filters-author') - NOTE_STUDENT = (By.ID, 'search-options-note-filters-student') + NOTE_AUTHOR = (By.ID, 'search-options-note-author') + NOTE_STUDENT = (By.ID, 'search-options-note-student') def set_notes_author(self, name, alt_names=None): app.logger.info(f'Setting note search author name {name}') diff --git a/src/components/search/AdvancedSearch.vue b/src/components/search/AdvancedSearch.vue index 64f57b4ab..b23dbf43b 100644 --- a/src/components/search/AdvancedSearch.vue +++ b/src/components/search/AdvancedSearch.vue @@ -10,6 +10,7 @@ 'search-focus-in': searchStore.isFocusOnSearch || searchStore.queryText, 'search-focus-out': !searchStore.isFocusOnSearch && !searchStore.queryText }" + clearable :disabled="searchStore.isSearching" :get-value="() => queryTextModel" id-prefix="basic-search" diff --git a/src/components/search/AdvancedSearchModal.vue b/src/components/search/AdvancedSearchModal.vue index 3e0f6796c..0a71d1343 100644 --- a/src/components/search/AdvancedSearchModal.vue +++ b/src/components/search/AdvancedSearchModal.vue @@ -7,6 +7,7 @@ aria-label="Open Advanced Search dialog" class="mx-1" :class="{'border-0': !isFocusAdvSearchButton}" + clearable color="white" :disabled="searchStore.isSearching" height="46" @@ -47,6 +48,7 @@
- - Advisor + { model.postedBy = 'anyone' model.author = author }" - @update:search="onUpdateAdvisorSearch" - @blur="onAdvisorSearchBlur" - > - - - + />
-