docs(timeline): reword TagChip comment to clear the raw-HTML grep gate

The doc comment described escaping by naming the raw-HTML directive literally,
which trips the lib/timeline grep gate that forbids that token. Reword it the
way LetterCard already does — behavior unchanged.

Refs #835
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-06-14 15:16:51 +02:00
parent 8376a520c5
commit bbf2f96e28

View File

@@ -5,9 +5,9 @@ import * as m from '$lib/paraglide/messages.js';
* A single root-tag chip on a timeline letter card (§3 of the Zeitstrahl spec): a * A single root-tag chip on a timeline letter card (§3 of the Zeitstrahl spec): a
* decorative colored square marker plus the tag name, prefixed for screen readers by * decorative colored square marker plus the tag name, prefixed for screen readers by
* an sr-only theme label so color is never the only cue (WCAG 1.4.1, REQ-011). The * an sr-only theme label so color is never the only cue (WCAG 1.4.1, REQ-011). The
* name is curator/import-derived and rendered via default `{...}` escaping — never * name is curator/import-derived and rendered via default `{...}` escaping — never the
* `{@html}` (REQ-010). `color` is a `--c-tag-*` token or null; a null color renders a * raw-HTML directive (REQ-010). `color` is a `--c-tag-*` token or null; a null color
* neutral marker with no `var(--c-tag-)` reference (REQ-007). Truncation is set inline * renders a neutral marker with no `var(--c-tag-)` reference (REQ-007). Truncation is set inline
* (not via a utility class) so a long name ellipsizes even before the stylesheet loads, * (not via a utility class) so a long name ellipsizes even before the stylesheet loads,
* keeping the card free of horizontal overflow at 320px (REQ-008a). * keeping the card free of horizontal overflow at 320px (REQ-008a).
*/ */