fix dark light colors of dialog
This commit is contained in:
parent
a47e4526bb
commit
f10cdf491d
@ -12,8 +12,8 @@ export function Dialog({ children, open, setOpen, title }: DialogProps) {
|
|||||||
return (
|
return (
|
||||||
<DialogPrimitives.Root open={open} onOpenChange={(x) => setOpen(x)}>
|
<DialogPrimitives.Root open={open} onOpenChange={(x) => setOpen(x)}>
|
||||||
<DialogPrimitives.Portal>
|
<DialogPrimitives.Portal>
|
||||||
<DialogPrimitives.Overlay className="fixed inset-0 bg-black opacity-20" />
|
<DialogPrimitives.Overlay className="fixed inset-0 bg-black dark:bg-white opacity-40 dark:opacity-15" />
|
||||||
<DialogPrimitives.Content className="fixed w-[500px] bg-white top-40 p-28 left-[calc(50%-250px)]">
|
<DialogPrimitives.Content className="fixed w-[500px] top-40 p-28 left-[calc(50%-250px)] dark:bg-black dark:text-white-60 bg-white text-black-60">
|
||||||
{title && <h1 className="text-h5 mb-12">{title}</h1>}
|
{title && <h1 className="text-h5 mb-12">{title}</h1>}
|
||||||
{children}
|
{children}
|
||||||
</DialogPrimitives.Content>
|
</DialogPrimitives.Content>
|
||||||
|
Loading…
Reference in New Issue
Block a user