From ff4c80bea8d9eabc0b027f689585ea401d00463e Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:22:31 +0545 Subject: [PATCH] refactor (mapper): update styles, update TS types, update accessibility (#2059) * fix(app): import google font app with preconnect * fix(skeleton): remove skeleton loader as we load comments & activities before UI load * fix(login): use utility-first styling * fix(comment): use keyed loop, remove skeleton, update border style * fix(activities): remove skeleton, use keyed loop * fix(main): add button title * fix(bottom-sheet): role add * fix(geolocation): title add to button * fix(legend): arialabel and alt text add * fix(page): minify css * fix(css): update font style * fix(page): remove commented code --- src/mapper/src/app.html | 6 ++ .../src/lib/components/bottom-sheet.svelte | 3 + .../components/dialog-entities-actions.svelte | 14 ++- .../lib/components/dialog-task-actions.svelte | 18 ++-- src/mapper/src/lib/components/header.svelte | 10 +- src/mapper/src/lib/components/login.svelte | 14 +-- .../src/lib/components/map/geolocation.svelte | 5 +- .../lib/components/map/layer-switcher.svelte | 8 +- .../src/lib/components/map/legend.svelte | 9 +- src/mapper/src/lib/components/map/main.svelte | 6 +- .../src/lib/components/more/activities.svelte | 9 +- .../src/lib/components/more/comment.svelte | 18 ++-- .../src/lib/components/more/index.svelte | 4 +- .../lib/components/more/project-info.svelte | 10 +- .../more/skeleton/activities.svelte | 20 ---- .../components/more/skeleton/comment.svelte | 17 ---- .../lib/components/offline/basemaps.svelte | 14 +-- src/mapper/src/lib/components/qrcode.svelte | 98 +++++++++---------- src/mapper/src/routes/+layout.svelte | 3 +- .../src/routes/[projectId]/+page.svelte | 4 +- src/mapper/src/styles/page.css | 28 +----- 21 files changed, 121 insertions(+), 197 deletions(-) delete mode 100644 src/mapper/src/lib/components/more/skeleton/activities.svelte delete mode 100644 src/mapper/src/lib/components/more/skeleton/comment.svelte diff --git a/src/mapper/src/app.html b/src/mapper/src/app.html index d80a432854..1cb37028c3 100644 --- a/src/mapper/src/app.html +++ b/src/mapper/src/app.html @@ -16,6 +16,12 @@ + + + %sveltekit.head% diff --git a/src/mapper/src/lib/components/bottom-sheet.svelte b/src/mapper/src/lib/components/bottom-sheet.svelte index 54c16907a4..556f0f94d0 100644 --- a/src/mapper/src/lib/components/bottom-sheet.svelte +++ b/src/mapper/src/lib/components/bottom-sheet.svelte @@ -113,6 +113,9 @@ ontouchend={dragStop} onmouseup={dragStop} onmouseout={dragStop} + role="button" + tabindex="0" + onblur={() => {}} > diff --git a/src/mapper/src/lib/components/dialog-entities-actions.svelte b/src/mapper/src/lib/components/dialog-entities-actions.svelte index 6f160f031b..991af37211 100644 --- a/src/mapper/src/lib/components/dialog-entities-actions.svelte +++ b/src/mapper/src/lib/components/dialog-entities-actions.svelte @@ -63,10 +63,8 @@ {#if isTaskActionModalOpen && selectedTab === 'map' && selectedEntity} -