From 59021277257474c7784e66cd21f41e78c66dbe48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 21 May 2026 21:28:17 +0200 Subject: [PATCH] fix(overlay): close-X reaches 44 px on phones, keeps 36 px on desktop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both Sheet and Dialog primitives carried a 36 px floor on the close affordance — under the WCAG 2.5.5 target. Gate the size by viewport: `min-h-11 min-w-11 sm:min-h-9 sm:min-w-9` lifts the smallest viewport to 44 px while sm+ keeps the dense 36 px the headers were laid out around. Avoids the 320 px crowding regression the inline comments flagged on previous attempts. --- src/components/ui/dialog.tsx | 2 +- src/components/ui/sheet.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 700fa5950..dd588b68e 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -83,7 +83,7 @@ function DialogContent({ // crowd the dialog header out of proportion. {/* v1.4.34 IW-G — read `common.close` so screen readers diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index e5527afcf..a2b355b6f 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -85,7 +85,7 @@ function SheetContent({ // header out of proportion on the bottom-sheet branch. {/* v1.4.34 IW-G — read `common.close` so screen readers