diff --git a/apps/app/e2e/harness/dialog.tsx b/apps/app/e2e/harness/dialog.tsx
index 62b15716..57f0a58a 100644
--- a/apps/app/e2e/harness/dialog.tsx
+++ b/apps/app/e2e/harness/dialog.tsx
@@ -17,7 +17,11 @@ const lang: Locale =
useLocaleStore.setState({ locale: lang })
document.documentElement.lang = lang
-type Scenario = 'basic' | 'long' | 'guarded' | 'vanishing' | null
+/** Wraps on a phone: the close button must keep its 44 px box beside it. */
+const LONG_TITLE =
+ 'A dialog title long enough to wrap over several lines on a narrow phone screen'
+
+type Scenario = 'basic' | 'long' | 'title' | 'guarded' | 'vanishing' | null
function Background({ onOpen }: { onOpen: (scenario: Scenario) => void }) {
const [clicks, setClicks] = useState(0)
@@ -26,6 +30,7 @@ function Background({ onOpen }: { onOpen: (scenario: Scenario) => void }) {
+
diff --git a/apps/app/tests/unit/ui.Dialog.test.tsx b/apps/app/tests/unit/ui.Dialog.test.tsx
index 7bd73f67..647fb553 100644
--- a/apps/app/tests/unit/ui.Dialog.test.tsx
+++ b/apps/app/tests/unit/ui.Dialog.test.tsx
@@ -56,6 +56,31 @@ describe('Dialog', () => {
expect(dialog).toHaveAccessibleDescription('It goes for good.')
})
+ it('its ✕ is a 44 px box with a visible focus ring; a long title wraps beside it (Rev 6)', () => {
+ useLocaleStore.setState({ locale: 'fr' })
+ render(
+ ,
+ )
+ const close = screen.getByRole('button', { name: 'Fermer' })
+ for (const name of [
+ 'grid',
+ 'h-11',
+ 'w-11',
+ 'shrink-0',
+ 'place-items-center',
+ 'rounded-lg',
+ 'focus-visible:ring-2',
+ ]) {
+ expect(close).toHaveClass(name)
+ }
+ expect(screen.getByRole('heading', { name: 'X' })).toHaveClass(
+ 'min-w-0',
+ 'break-words',
+ )
+ })
+
it('has no description when none is given', () => {
render(