From cb144ae47273deeb7058d4b1380e480ebccdaf81 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Mon, 15 Apr 2024 09:21:31 +0200 Subject: [PATCH] Fix inability to tap outside modal on mobile This commit addresses touch target size issues on mobile devices by adjusting modal margins. The larger margin allows for easier interaction for modal dialogs by tapping outside the modal area on smaller screens. Key changes: - Introduce 30px margin on larger screens and 20px on smaller devices around modals, adhering to accessibility guidelines. - Remove `max-height: 90vh;` in favor of consistent vertical margins, centralizing the spacing control via the `margin` property. - Remove `max-height: 90v;` used to display scroll-bars as the vertical margin is now handled by `margin` property in single place. --- .../components/Shared/Modal/ModalContainer.vue | 3 ++- .../components/Shared/Modal/ModalContent.vue | 13 ++++++++++++- tests/e2e/no-unintended-layout-shifts.cy.ts | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/presentation/components/Shared/Modal/ModalContainer.vue b/src/presentation/components/Shared/Modal/ModalContainer.vue index eb6f434e..9ff00590 100644 --- a/src/presentation/components/Shared/Modal/ModalContainer.vue +++ b/src/presentation/components/Shared/Modal/ModalContainer.vue @@ -9,7 +9,6 @@ @click="onBackgroundOverlayClick" /> @@ -138,6 +137,8 @@ export default defineComponent({