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')} )} - +