From 36482f760b4508d1e67dd52e0bea5edc6e319bc7 Mon Sep 17 00:00:00 2001 From: qhanson55 Date: Tue, 24 Dec 2024 10:30:28 -0800 Subject: [PATCH] Ensured and added keyboard navigation for public facing components --- frontend/src/components/common/BackButton.vue | 15 ++-- .../src/components/file/DeleteDocument.vue | 2 + frontend/src/components/file/DocumentCard.vue | 2 + .../src/components/file/DocumentCardLite.vue | 2 + .../housing/enquiry/EnquiryIntakeForm.vue | 10 ++- .../submission/SubmissionAssistance.vue | 8 +++ .../submission/SubmissionIntakeForm.vue | 67 ++++++++++++++++-- frontend/src/components/layout/Footer.vue | 3 - frontend/src/utils/utils.ts | 21 ++++++ frontend/src/views/housing/HousingView.vue | 68 +++++++++++++------ .../src/views/housing/project/ProjectView.vue | 13 ++++ .../src/views/permit/PermitStatusView.vue | 3 + 12 files changed, 177 insertions(+), 37 deletions(-) diff --git a/frontend/src/components/common/BackButton.vue b/frontend/src/components/common/BackButton.vue index b911fb7a..e2a55092 100644 --- a/frontend/src/components/common/BackButton.vue +++ b/frontend/src/components/common/BackButton.vue @@ -38,14 +38,15 @@ function onConfirmLeave() { v-if="!confirmLeave" class="p-0" text + @click="router.push({ name: routeName })" + @keydown.enter.prevent="router.push({ name: routeName })" + @keydown.space.prevent="router.push({ name: routeName })" > - - - {{ text }} - + + {{ text }}