From e2908676ec97fecabdd29021cad2f717c2b31a74 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 07:00:24 +0100 Subject: [PATCH] fix: give menu rows, the phone More panel's close and the subject star a 44px touch target --- .../__tests__/more-actions-menu.test.tsx | 11 ++++++++ components/email/email-viewer.tsx | 22 ++++++++-------- components/email/move-target-list.tsx | 2 +- components/email/tag-picker.tsx | 2 +- .../ui/__tests__/context-menu-touch.test.tsx | 25 +++++++++++++++++++ components/ui/context-menu.tsx | 5 ++-- 6 files changed, 53 insertions(+), 14 deletions(-) create mode 100644 components/ui/__tests__/context-menu-touch.test.tsx diff --git a/components/email/__tests__/more-actions-menu.test.tsx b/components/email/__tests__/more-actions-menu.test.tsx index 1dd50c78f..33bb3d859 100644 --- a/components/email/__tests__/more-actions-menu.test.tsx +++ b/components/email/__tests__/more-actions-menu.test.tsx @@ -200,3 +200,14 @@ describe('phone More panel parity', () => { expect(within(menu).queryByRole('menuitem', { name: /keyboard_shortcuts/ })).toBeNull(); }); }); +describe('phone touch targets (MAIL-18)', () => { + it('draws the panel close at 44px and gives the subject star the touch hit area', () => { + renderViewer({ onToggleStar: vi.fn() }); + const close = screen.getByTestId('more-panel-close'); + expect(close.className).toContain('h-11'); + expect(close.className).toContain('w-11'); + const star = screen.getByTestId('subject-star'); + expect(star).toHaveAccessibleName('tooltips.star'); + expect(star.className).toContain('pointer-coarse:after:min-h-11'); + }); +}); diff --git a/components/email/email-viewer.tsx b/components/email/email-viewer.tsx index 889cf769a..9f1c29397 100644 --- a/components/email/email-viewer.tsx +++ b/components/email/email-viewer.tsx @@ -4562,16 +4562,16 @@ export function EmailViewer({ ) : ( {t('more_actions')} )} - +