1
0
Эх сурвалжийг харах

add aria modal true and role dialog to modal

Sine Jespersen 5 сар өмнө
parent
commit
bd2021e8e1

+ 2 - 0
src/lib/components/common/Modal.svelte

@@ -67,6 +67,8 @@
 	<div
 		bind:this={modalElement}
 		use:focusTrap
+		aria-modal="true"
+		role="dialog"
 		class="modal fixed top-0 right-0 left-0 bottom-0 bg-black/60 w-full h-screen max-h-[100dvh] {containerClassName} flex justify-center z-9999 overflow-y-auto overscroll-contain"
 		in:fade={{ duration: 10 }}
 		on:mousedown={() => {