Skip to content

Commit

Permalink
chore(fe): remove duplicate backdrop blur by setting it as a default …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
jihorobert committed Dec 30, 2024
1 parent 9591348 commit a762ada
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/frontend/components/shadcn/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ const AlertDialogOverlay = React.forwardRef<
>(({ className, darkMode = false, ...props }, ref) => (
<AlertDialogPrimitive.Overlay
className={cn(
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50',
darkMode
? 'bg-black/80 backdrop-blur-sm'
: 'bg-gray-300/20 backdrop-blur-sm',
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm',
darkMode ? 'bg-black/80' : 'bg-gray-300/20',
className
)}
{...props}
Expand Down

0 comments on commit a762ada

Please sign in to comment.