Skip to content

Commit

Permalink
improve: generic-modal attach id
Browse files Browse the repository at this point in the history
  • Loading branch information
pongstr committed Dec 24, 2024
1 parent 35be006 commit 7b379bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const Modal: FC<PropsWithChildren<Omit<ModalContextType, "id">>> = ({

return (
<ModalContext.Provider value={{ id: dialogId, open, onOpenChange }}>
<dialog ref={dialogRef} className="group">
<dialog id={dialogId} ref={dialogRef} className="group">
<div className="fixed w-full h-full overflow-y inset-0 grid place-content-center bg-black/30 backdrop-blur-sm opacity-0 transition-all duration-300 ease-in-out group-data-[open]:opacity-100 group-data-[closing]:opacity-0">
<div
className="overflow-y-auto w-screen h-screen place-content-center scale-75 py-10 opacity-0 shadow-lg transition-all duration-300 ease-out group-data-[open]:scale-100 group-data-[open]:opacity-100 group-data-[closing]:scale-75 group-data-[closing]:opacity-0"
Expand Down

0 comments on commit 7b379bc

Please sign in to comment.