From 4c4b2641e91d9fa9b0b76a04e7205d6a7cfb76ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Domingo=20Agust=C3=AD?= Date: Sun, 18 Oct 2026 18:10:04 +0200 Subject: [PATCH] =?UTF-8?q?style(web):=20higiene=20de=20tokens=20Forge=20s?= =?UTF-8?q?in=20redise=C3=B1ar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Elimina CSS muerto Sencillo/Avanzado, mapea literales a tokens DS, documenta rail current como herencia selected y regenera baselines tras CSS real bajo CSP. --- apps/web/a11y-playwright.test.ts | 7 +- apps/web/src/styles.css | 84 +++++++++--------- apps/web/visual-baselines/home-dark.png | Bin 91028 -> 96760 bytes .../visual-baselines/home-high-contrast.png | Bin 83097 -> 84876 bytes apps/web/visual-baselines/home-light.png | Bin 91101 -> 96758 bytes .../visual-baselines/home-reduced-motion.png | Bin 91028 -> 96760 bytes .../forge-integrity-findings-2026-10-18.md | 53 ++++++----- 7 files changed, 78 insertions(+), 66 deletions(-) diff --git a/apps/web/a11y-playwright.test.ts b/apps/web/a11y-playwright.test.ts index 9f655e0..2aa36ae 100644 --- a/apps/web/a11y-playwright.test.ts +++ b/apps/web/a11y-playwright.test.ts @@ -116,9 +116,12 @@ test.describe("F6 viewports y foco", () => { test(`rail y skip link visibles a ${width}px`, async ({ page }) => { await page.setViewportSize({ width, height: 800 }); await page.goto(BASE_URL); - await page.waitForLoadState("networkidle"); await expect( - page.locator("nav, [role='navigation']").first(), + page.getByRole("heading", { name: /Disco y particiones/i }), + ).toBeVisible({ timeout: 30_000 }); + // Rail y stepper coexisten; solo uno es visible por viewport (CSS). + await expect( + page.locator("#step-rail:visible, #step-stepper:visible").first(), ).toBeVisible(); await page.keyboard.press("Tab"); const tag = await page.evaluate(() => document.activeElement?.tagName); diff --git a/apps/web/src/styles.css b/apps/web/src/styles.css index 97891d9..230a5fd 100644 --- a/apps/web/src/styles.css +++ b/apps/web/src/styles.css @@ -2,7 +2,9 @@ CSP style-src 'self' (Vite no debe inyectar