From 0d268a0e31310a5b0122e4fd001935e1074496e8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 11 Apr 2026 13:28:46 +0800 Subject: [PATCH] fix: make shared overlays opaque --- app/globals.css | 34 +++++++++++++++++++++++++++++++++ components/ui/alert-dialog.tsx | 2 +- components/ui/dialog.tsx | 2 +- components/ui/dropdown-menu.tsx | 4 ++-- components/ui/hover-card.tsx | 2 +- components/ui/popover.tsx | 2 +- components/ui/sheet.tsx | 2 +- components/ui/tooltip.tsx | 2 +- 8 files changed, 42 insertions(+), 8 deletions(-) diff --git a/app/globals.css b/app/globals.css index e62ba6923..4a5eef878 100644 --- a/app/globals.css +++ b/app/globals.css @@ -98,6 +98,40 @@ --breakpoint-toast-mobile: 600px; + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); + --color-sidebar: var(--sidebar); + --color-sidebar-background: var(--sidebar-background); + --color-sidebar-foreground: var(--sidebar-foreground); + --color-sidebar-primary: var(--sidebar-primary); + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); + --color-sidebar-accent: var(--sidebar-accent); + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); + --color-sidebar-border: var(--sidebar-border); + --color-sidebar-ring: var(--sidebar-ring); + --color-chart-1: var(--chart-1); + --color-chart-2: var(--chart-2); + --color-chart-3: var(--chart-3); + --color-chart-4: var(--chart-4); + --color-chart-5: var(--chart-5); + --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 2px); --radius-sm: calc(var(--radius) - 4px); diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsx index 40aa4705e..002636ad1 100644 --- a/components/ui/alert-dialog.tsx +++ b/components/ui/alert-dialog.tsx @@ -36,7 +36,7 @@ const AlertDialogContent = React.forwardRef<