Explorar el Código

remove nested button and add label for assistive technology

Sine Jespersen hace 9 meses
padre
commit
7e49c8733b
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/lib/components/chat/Navbar.svelte

+ 4 - 4
src/lib/components/chat/Navbar.svelte

@@ -173,19 +173,19 @@
 								}
 								}
 							}}
 							}}
 						>
 						>
-							<button
+							<div
 								class="select-none flex rounded-xl p-1.5 w-full hover:bg-gray-50 dark:hover:bg-gray-850 transition"
 								class="select-none flex rounded-xl p-1.5 w-full hover:bg-gray-50 dark:hover:bg-gray-850 transition"
-								aria-label="User Menu"
 							>
 							>
 								<div class=" self-center">
 								<div class=" self-center">
+									<span class="sr-only">{$i18n.t('User menu')}</span>
 									<img
 									<img
 										src={$user?.profile_image_url}
 										src={$user?.profile_image_url}
 										class="size-6 object-cover rounded-full"
 										class="size-6 object-cover rounded-full"
-										alt="User profile"
+										alt=""
 										draggable="false"
 										draggable="false"
 									/>
 									/>
 								</div>
 								</div>
-							</button>
+							</div>
 						</UserMenu>
 						</UserMenu>
 					{/if}
 					{/if}
 				</div>
 				</div>