From c8e674a7b33cf84e07dcedbb6c3bf42561950ea8 Mon Sep 17 00:00:00 2001 From: snuziale <6452957+snuziale@users.noreply.github.com> Date: Fri, 7 Aug 2026 11:11:08 -0700 Subject: [PATCH] fix(apollo-wind): anchor dialog close button inside the dialog d1e34176 switched DialogContent from `fixed` + transform centering to a flex child of DialogOverlay, which left the content statically positioned. The close button's `absolute top-4 right-4` then resolved against DialogOverlay (`fixed inset-0`), rendering the X in the top-right corner of the page instead of the dialog. Add `relative` to DialogContent to restore it as the containing block. Also add `cursor-pointer` to the close button: Tailwind v4 dropped the default pointer cursor on buttons, so the X did not read as clickable the way the Button variants (which set it explicitly) do. Co-Authored-By: Claude Opus 5 (1M context) --- packages/apollo-wind/src/components/ui/dialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apollo-wind/src/components/ui/dialog.tsx b/packages/apollo-wind/src/components/ui/dialog.tsx index 840babfe3..8dba9ed67 100644 --- a/packages/apollo-wind/src/components/ui/dialog.tsx +++ b/packages/apollo-wind/src/components/ui/dialog.tsx @@ -57,7 +57,7 @@ const DialogContent = React.forwardRef< Close