add aria modal true and role dialog to modal

This commit is contained in:
Sine Jespersen 2025-05-07 15:17:11 +02:00
parent 54b30e0b7f
commit bd2021e8e1

View File

@ -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={() => {