From bec0597541f716a1c51b0ad3e4bece0964683ded Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 10 Jan 2024 12:24:44 +0100 Subject: [PATCH] A11y: make sure the dialog is still usable with extreme zoom levels --- public/css/index-tailwind-output.css | 27 ++++---- .../BigComponents/SelectedElementTitle.svelte | 66 ++++++++++--------- 2 files changed, 47 insertions(+), 46 deletions(-) diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index 50cced769c..96988f98f9 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -1071,14 +1071,14 @@ video { height: 6rem; } -.h-screen { - height: 100vh; -} - .h-full { height: 100%; } +.h-screen { + height: 100vh; +} + .h-32 { height: 8rem; } @@ -1285,6 +1285,10 @@ video { flex-shrink: 1; } +.flex-grow { + flex-grow: 1; +} + .grow { flex-grow: 1; } @@ -1931,11 +1935,6 @@ video { line-height: 1.75rem; } -.text-5xl { - font-size: 3rem; - line-height: 1; -} - .text-sm { font-size: 0.875rem; line-height: 1.25rem; @@ -1956,6 +1955,11 @@ video { line-height: 2.5rem; } +.text-5xl { + font-size: 3rem; + line-height: 1; +} + .font-extrabold { font-weight: 800; } @@ -2039,11 +2043,6 @@ video { letter-spacing: -0.025em; } -.text-red-500 { - --tw-text-opacity: 1; - color: rgb(239 68 68 / var(--tw-text-opacity)); -} - .text-white { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); diff --git a/src/UI/BigComponents/SelectedElementTitle.svelte b/src/UI/BigComponents/SelectedElementTitle.svelte index c0015fb68e..5ed4690d84 100644 --- a/src/UI/BigComponents/SelectedElementTitle.svelte +++ b/src/UI/BigComponents/SelectedElementTitle.svelte @@ -13,7 +13,7 @@ export let layer: LayerConfig export let selectedElement: Feature let tags: UIEventSource> = state.featureProperties.getStore( - selectedElement.properties.id + selectedElement.properties.id, ) $: { tags = state.featureProperties.getStore(selectedElement.properties.id) @@ -25,49 +25,51 @@ {#if $tags._deleted === "yes"} {:else} -
-
- -

- - - -

+
+
+
+ +

+ + + +

-
+
{/if}