Skip to content

Commit

Permalink
Merge pull request #41 from babylonlabs-io/fix-dackdrop
Browse files Browse the repository at this point in the history
fix: backdrop styles
  • Loading branch information
totraev authored Nov 25, 2024
2 parents b3fb1b6 + f9dd1cf commit 8d4833e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-eels-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-core-ui": patch
---

fix backdrop styles
6 changes: 1 addition & 5 deletions src/components/Dialog/components/Backdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export interface BackdropProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivE
export const Backdrop = ({ open = false, ...props }: BackdropProps) => (
<div
{...props}
className={twJoin(
"fixed inset-0 z-40 flex items-center justify-center bg-primary/50 transition-opacity duration-500",
open ? "animate-backdrop-in" : "animate-backdrop-out",
props.className,
)}
className={twJoin("bbn-backdrop", open ? "animate-backdrop-in" : "animate-backdrop-out", props.className)}
/>
);

0 comments on commit 8d4833e

Please sign in to comment.