focus on modal close last in tab order
This commit is contained in:
parent
ea80f1698a
commit
214ece99d9
|
@ -47,6 +47,7 @@ function Modal({
|
|||
: 'p-4 pt-6 sm:h-auto sm:max-w-md sm:rounded-lg sm:border sm:border-th-bkg-3 sm:p-6'
|
||||
} relative `}
|
||||
>
|
||||
<div>{children}</div>
|
||||
{!hideClose ? (
|
||||
<button
|
||||
onClick={onClose}
|
||||
|
@ -55,7 +56,6 @@ function Modal({
|
|||
<XMarkIcon className={`h-6 w-6`} />
|
||||
</button>
|
||||
) : null}
|
||||
<div>{children}</div>
|
||||
</Dialog.Panel>
|
||||
</div>
|
||||
</Dialog>
|
||||
|
|
Loading…
Reference in New Issue