From ae3bc3f24610a3b5bf5134319bc92f16850ad774 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 22 Apr 2026 10:50:35 +0200 Subject: [PATCH] docs(claude): update back link pattern to use BackButton component Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3dd52a15..d0b67fe4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -311,13 +311,15 @@ Save bar pattern — use **sticky full-bleed** for long forms (edit document), *
``` -Back link pattern: +Back button pattern — use the shared `` component from `$lib/components/BackButton.svelte`: ```svelte - - - Zurück zur Übersicht - + + + ``` +The component calls `history.back()` so the user returns to wherever they came from. Label is always "Zurück" (no contextual suffix — destination is unknown). Touch target ≥ 44px and focus ring are built in. Do not use a static `` for back navigation. Subtle action link (e.g. "new document/person"): ```svelte