From 7f035958e4f65677edead1cc0623547c64981b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 15 May 2026 20:59:08 +0200 Subject: [PATCH] fix(ui): widen the Sheet close-X hit area to match the Dialog primitive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Sheet close-X button rendered at the 16 px size of its SVG icon — no min-h / min-w floor — even though the bottom-sheet branch of ResponsiveSheet is the primary dismiss path on phone viewports for quick-add sheets, intake-history trays, and the Coach side trays. The Dialog primitive lifted its close-X to a 36 px floor in MB2 per the WCAG 2.5.8 minimum target rationale; align the Sheet primitive on the same shape so the highest-traffic dismiss control no longer trails the rest of the v1.4.27 tap-target sweep. --- src/components/ui/sheet.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index d6a4c2375..e2187205c 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -75,8 +75,17 @@ function SheetContent({ > {children} {showCloseButton && ( - - + // v1.4.27 R4 RC3 — widen the icon-only close-X tap target to + // a 36 px floor, matching the Dialog close-X treatment from + // MB2 (Decision I). 36 px (not 44 px) is the intentional + // exception for fixed icon-only close affordances per the + // dialog primitive's rationale: 44 px would crowd the sheet + // header out of proportion on the bottom-sheet branch. + + Close )}