forked from MapComplete/MapComplete
		
	A11y: make sure the dialog is still usable with extreme zoom levels
This commit is contained in:
		
							parent
							
								
									f5ba4bc3e4
								
							
						
					
					
						commit
						bec0597541
					
				
					 2 changed files with 47 additions and 46 deletions
				
			
		|  | @ -1071,14 +1071,14 @@ video { | ||||||
|   height: 6rem; |   height: 6rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .h-screen { |  | ||||||
|   height: 100vh; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .h-full { | .h-full { | ||||||
|   height: 100%; |   height: 100%; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .h-screen { | ||||||
|  |   height: 100vh; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .h-32 { | .h-32 { | ||||||
|   height: 8rem; |   height: 8rem; | ||||||
| } | } | ||||||
|  | @ -1285,6 +1285,10 @@ video { | ||||||
|   flex-shrink: 1; |   flex-shrink: 1; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .flex-grow { | ||||||
|  |   flex-grow: 1; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .grow { | .grow { | ||||||
|   flex-grow: 1; |   flex-grow: 1; | ||||||
| } | } | ||||||
|  | @ -1931,11 +1935,6 @@ video { | ||||||
|   line-height: 1.75rem; |   line-height: 1.75rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .text-5xl { |  | ||||||
|   font-size: 3rem; |  | ||||||
|   line-height: 1; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .text-sm { | .text-sm { | ||||||
|   font-size: 0.875rem; |   font-size: 0.875rem; | ||||||
|   line-height: 1.25rem; |   line-height: 1.25rem; | ||||||
|  | @ -1956,6 +1955,11 @@ video { | ||||||
|   line-height: 2.5rem; |   line-height: 2.5rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .text-5xl { | ||||||
|  |   font-size: 3rem; | ||||||
|  |   line-height: 1; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .font-extrabold { | .font-extrabold { | ||||||
|   font-weight: 800; |   font-weight: 800; | ||||||
| } | } | ||||||
|  | @ -2039,11 +2043,6 @@ video { | ||||||
|   letter-spacing: -0.025em; |   letter-spacing: -0.025em; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .text-red-500 { |  | ||||||
|   --tw-text-opacity: 1; |  | ||||||
|   color: rgb(239 68 68 / var(--tw-text-opacity)); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .text-white { | .text-white { | ||||||
|   --tw-text-opacity: 1; |   --tw-text-opacity: 1; | ||||||
|   color: rgb(255 255 255 / var(--tw-text-opacity)); |   color: rgb(255 255 255 / var(--tw-text-opacity)); | ||||||
|  |  | ||||||
|  | @ -13,7 +13,7 @@ | ||||||
|   export let layer: LayerConfig |   export let layer: LayerConfig | ||||||
|   export let selectedElement: Feature |   export let selectedElement: Feature | ||||||
|   let tags: UIEventSource<Record<string, string>> = state.featureProperties.getStore( |   let tags: UIEventSource<Record<string, string>> = state.featureProperties.getStore( | ||||||
|     selectedElement.properties.id |     selectedElement.properties.id, | ||||||
|   ) |   ) | ||||||
|   $: { |   $: { | ||||||
|     tags = state.featureProperties.getStore(selectedElement.properties.id) |     tags = state.featureProperties.getStore(selectedElement.properties.id) | ||||||
|  | @ -25,12 +25,11 @@ | ||||||
| {#if $tags._deleted === "yes"} | {#if $tags._deleted === "yes"} | ||||||
|   <Tr t={Translations.t.delete.isDeleted} /> |   <Tr t={Translations.t.delete.isDeleted} /> | ||||||
| {:else} | {:else} | ||||||
|   <div |   <div class="low-interaction border-b-2 border-black px-3 drop-shadow-md flex"> | ||||||
|     class="low-interaction flex items-center justify-between border-b-2 border-black px-3 drop-shadow-md" |     <div class="h-fit overflow-auto w-full sm:p-2" style="max-height: 20vh;"> | ||||||
|   > |       <div class="flex flex-col flex-grow w-full h-full "> | ||||||
|     <div class="flex flex-col"> |         <!-- Title element and  title icons--> | ||||||
|       <!-- Title element--> |         <h3 class="m-0"> | ||||||
|       <h3> |  | ||||||
|           <a href={`#${$tags.id}`}> |           <a href={`#${$tags.id}`}> | ||||||
|             <TagRenderingAnswer config={layer.title} {selectedElement} {state} {tags} {layer} /> |             <TagRenderingAnswer config={layer.title} {selectedElement} {state} {tags} {layer} /> | ||||||
|           </a> |           </a> | ||||||
|  | @ -55,14 +54,17 @@ | ||||||
|           {/each} |           {/each} | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|  |     </div> | ||||||
| 
 | 
 | ||||||
|     <button |     <button | ||||||
|       on:click={() => state.selectedElement.setData(undefined)} |       on:click={() => state.selectedElement.setData(undefined)} | ||||||
|       use:ariaLabel={Translations.t.general.backToMap} |       use:ariaLabel={Translations.t.general.backToMap} | ||||||
|       class="rounded-full border-none p-0" |       class="rounded-full border-none p-0 shrink-0 h-fit mt-2" | ||||||
|  |       style="border: 0 !important; padding: 0 !important;" | ||||||
|     > |     > | ||||||
|       <XCircleIcon aria-hidden={true} class="h-8 w-8" /> |       <XCircleIcon aria-hidden={true} class="h-8 w-8" /> | ||||||
|     </button> |     </button> | ||||||
|  | 
 | ||||||
|   </div> |   </div> | ||||||
| {/if} | {/if} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue