forked from MapComplete/MapComplete
		
	A11y: screen navigation improvements, see #1181
This commit is contained in:
		
							parent
							
								
									66369ef0b4
								
							
						
					
					
						commit
						af4d9bb2bf
					
				
					 25 changed files with 483 additions and 325 deletions
				
			
		|  | @ -11,12 +11,6 @@ | |||
| 
 | ||||
|   export let extraClasses = "p-4 md:p-6"; | ||||
| 
 | ||||
|   let mainContent: HTMLElement; | ||||
|   onMount(() => { | ||||
|     requestAnimationFrame(() => { | ||||
|       Utils.focusOnFocusableChild(mainContent); | ||||
|     }); | ||||
|   }); | ||||
| 
 | ||||
| </script> | ||||
| 
 | ||||
|  | @ -31,7 +25,7 @@ | |||
|   use:trapFocus | ||||
|   style="z-index: 21" | ||||
| > | ||||
|   <div bind:this={mainContent} class="content normal-background" on:click|stopPropagation={() => {}}> | ||||
|   <div class="content normal-background" on:click|stopPropagation={() => {}}> | ||||
|     <div class="h-full rounded-xl"> | ||||
|       <slot /> | ||||
|     </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue