From 71892e729372cea73ad96a4523515e30a983ffef Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 25 Apr 2026 01:03:43 +0200 Subject: [PATCH 01/13] feat(tokens): add --color-parchment design token for warm example-block surfaces Adds --c-parchment (#faf8f1 light / #041828 dark) to :root and both dark-mode blocks, exposed as --color-parchment via @theme inline. Prerequisite for replacing bg-[#FAF8F1] raw-hex in RichtlinienRuleCard and TranscribeDragDemo. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/layout.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css index 0f93fa13..ef368838 100644 --- a/frontend/src/routes/layout.css +++ b/frontend/src/routes/layout.css @@ -66,6 +66,9 @@ /* Focus ring — keyboard focus indicator, mode-aware (navy in light, mint in dark) */ --color-focus-ring: var(--c-focus-ring); + /* Parchment — warm background for code/example blocks inside cards */ + --color-parchment: var(--c-parchment); + /* Danger — destructive action color */ --color-danger: var(--c-danger); --color-danger-fg: var(--c-danger-fg); @@ -122,6 +125,9 @@ --c-danger: #c0392b; --c-danger-fg: #ffffff; + /* Parchment — warm near-white for example blocks (light mode: cream #FAF8F1) */ + --c-parchment: #faf8f1; + /* Tag color tokens — decorative dot colors on tag chips */ --c-tag-sage: #5a8a6a; --c-tag-sienna: #a0522d; @@ -203,6 +209,9 @@ --c-danger: #e55347; --c-danger-fg: #ffffff; + /* Parchment — subtle surface shift for example blocks on dark navy */ + --c-parchment: #041828; + /* Tag color tokens — lighter for visibility on dark backgrounds */ --c-tag-sage: #7abf8a; --c-tag-sienna: #cc7050; @@ -267,6 +276,9 @@ --c-danger: #e55347; --c-danger-fg: #ffffff; + /* Parchment — subtle surface shift for example blocks on dark navy */ + --c-parchment: #041828; + /* Tag color tokens — lighter for visibility on dark backgrounds */ --c-tag-sage: #7abf8a; --c-tag-sienna: #cc7050; -- 2.49.1 From 82af3f85a2bad3b4a02a0c2532ed58cb8e2befc6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 25 Apr 2026 01:06:52 +0200 Subject: [PATCH 02/13] fix(HelpPopover): role=region, 44px touch target, counter-based ID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - role="tooltip" → role="region" + aria-label={label}: tooltip semantics are wrong for a click-triggered panel (Nora/Sara) - expand button to 44×44px with inner visual : WCAG 2.5.8 touch target for 60+ transcriber audience (Sara/Leonie) - replace Math.random() with module-level counter: SSR/hydration mismatch when server and client generate different IDs (Felix) Co-Authored-By: Claude Sonnet 4.6 --- .../src/lib/components/HelpPopover.svelte | 25 +++++++++++++--- .../lib/components/HelpPopover.svelte.spec.ts | 29 ++++++++++++++----- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/frontend/src/lib/components/HelpPopover.svelte b/frontend/src/lib/components/HelpPopover.svelte index e1d118ca..f6ff984f 100644 --- a/frontend/src/lib/components/HelpPopover.svelte +++ b/frontend/src/lib/components/HelpPopover.svelte @@ -1,3 +1,10 @@ + +
+ {#if open}