From 508e923e719ef4ddcc18ca30bd6cd03a8a9b7503 Mon Sep 17 00:00:00 2001 From: qhanson55 Date: Tue, 31 Dec 2024 11:24:23 -0800 Subject: [PATCH] Ensured and added keyboard navigation for public facing components --- frontend/src/components/common/BackButton.vue | 13 ++- frontend/src/components/common/Breadcrumb.vue | 2 +- frontend/src/components/common/StatusPill.vue | 2 + .../src/components/file/DeleteDocument.vue | 7 +- frontend/src/components/file/DocumentCard.vue | 2 + .../src/components/file/DocumentCardLite.vue | 2 + .../housing/enquiry/EnquiryIntakeForm.vue | 14 +++- .../submission/SubmissionAssistance.vue | 8 ++ .../submission/SubmissionIntakeForm.vue | 83 ++++++++++++------- frontend/src/components/layout/Footer.vue | 3 - frontend/src/locales/en-CA.json | 17 ++++ frontend/src/utils/utils.ts | 19 +++++ frontend/src/views/housing/HousingView.vue | 68 ++++++++++----- .../src/views/housing/project/ProjectView.vue | 13 +++ .../src/views/permit/PermitStatusView.vue | 3 + .../components/file/DeleteDocument.spec.ts | 6 ++ .../unit/components/file/DocumentCard.spec.ts | 6 ++ .../unit/views/housing/HousingView.spec.ts | 5 ++ 18 files changed, 206 insertions(+), 67 deletions(-) diff --git a/frontend/src/components/common/BackButton.vue b/frontend/src/components/common/BackButton.vue index b911fb7a..389a00eb 100644 --- a/frontend/src/components/common/BackButton.vue +++ b/frontend/src/components/common/BackButton.vue @@ -38,14 +38,13 @@ function onConfirmLeave() { v-if="!confirmLeave" class="p-0" text + @click="router.push({ name: routeName })" > - - - {{ text }} - + + {{ text }}