From 1e0433664c381a20185e091632cb67d9a82667f9 Mon Sep 17 00:00:00 2001 From: Yvv Date: Fri, 30 Oct 2026 12:09:01 +0100 Subject: [PATCH] =?UTF-8?q?v3=20:=20menu=20=E2=80=94=20nom=20accessible=20?= =?UTF-8?q?de=20=C2=AB=20Docs=20de=20r=C3=A9f=C3=A9rence=20=C2=BB=20avec?= =?UTF-8?q?=20son=20nombre=20de=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le lien porte « Docs de référence, 1 doc en cours » (fr, en, es) au lieu d'un texte masqué collé au libellé ; contrôlé dans C15. Co-Authored-By: Claude Opus 5.5 --- web/e2e/entree.spec.ts | 1 + web/src/lib/components/Sidebar.svelte | 6 +++--- web/src/lib/i18n/en.ts | 4 ++-- web/src/lib/i18n/es.ts | 4 ++-- web/src/lib/i18n/fr.ts | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/web/e2e/entree.spec.ts b/web/e2e/entree.spec.ts index 7e983d0..ce6ac02 100644 --- a/web/e2e/entree.spec.ts +++ b/web/e2e/entree.spec.ts @@ -78,6 +78,7 @@ test('C15 — le menu : le nombre de docs, surligné seulement dedans, seul Docs await expect(tool('Docs de référence')).toHaveAttribute('href', '/'); await page.goto(ML); await expect(tool('Docs de référence').locator('.count')).toHaveText('1'); + await expect(tool('Docs de référence')).toHaveAccessibleName('Docs de référence, 1 doc en cours'); await expect(nav.locator('.tool[aria-current="page"]')).toHaveCount(0); await expect(nav.locator('.tool.off')).toHaveCount(3); // Hover: Docs reacts, a tool to come does not. diff --git a/web/src/lib/components/Sidebar.svelte b/web/src/lib/components/Sidebar.svelte index 3d1bc91..b235fb6 100644 --- a/web/src/lib/components/Sidebar.svelte +++ b/web/src/lib/components/Sidebar.svelte @@ -51,6 +51,7 @@