fix(#93): migrate hardcoded text-gray-400/500 to semantic ink tokens in enrich pages #108

Merged
marcel merged 1 commits from feature/93-fix-label-contrast into main 2026-03-27 16:06:58 +01:00
Owner

Closes #93

Summary

The section label contrast issue (text-ink-3 uppercase used for "FILE", "MORE DETAILS", "OPTIONAL", etc.) is fixed at the token level in PR #107 (ink-3: #9ca3af → #6b7280).

This PR fixes the 3 hardcoded gray values in the enrich pages that bypass the token system entirely — and would have retained failing contrast even after #107 merges:

File Before After Contrast before
enrich/+page.svelte back link text-gray-500 text-ink-2 hover:text-ink ~4.2:1 on canvas ✗
enrich/done/+page.svelte body text-gray-500 text-ink-2 ~4.2:1 on canvas ✗
enrich/done/+page.svelte link text-gray-400 text-ink-2 hover:text-ink 2.6:1

Test plan

  • Enrich page: back link text is readable (not washed out) in light mode
  • Enrich done page: body text below heading is readable
  • Enrich done page: "back to list" link is readable at ≥ 4.5:1
  • Both pages still work correctly in dark mode (semantic tokens theme correctly)
Closes #93 ## Summary The section label contrast issue (`text-ink-3 uppercase` used for "FILE", "MORE DETAILS", "OPTIONAL", etc.) is fixed at the token level in PR #107 (`ink-3: #9ca3af → #6b7280`). This PR fixes the 3 hardcoded gray values in the enrich pages that bypass the token system entirely — and would have retained failing contrast even after #107 merges: | File | Before | After | Contrast before | |---|---|---|---| | `enrich/+page.svelte` back link | `text-gray-500` | `text-ink-2 hover:text-ink` | ~4.2:1 on canvas ✗ | | `enrich/done/+page.svelte` body | `text-gray-500` | `text-ink-2` | ~4.2:1 on canvas ✗ | | `enrich/done/+page.svelte` link | `text-gray-400` | `text-ink-2 hover:text-ink` | **2.6:1** ✗ | ## Test plan - [ ] Enrich page: back link text is readable (not washed out) in light mode - [ ] Enrich done page: body text below heading is readable - [ ] Enrich done page: "back to list" link is readable at ≥ 4.5:1 - [ ] Both pages still work correctly in dark mode (semantic tokens theme correctly)
marcel added 1 commit 2026-03-27 15:55:57 +01:00
fix(#93): migrate hardcoded text-gray-400/500 to semantic ink tokens
Some checks failed
CI / Unit & Component Tests (push) Successful in 2m33s
CI / Backend Unit Tests (push) Successful in 2m19s
CI / E2E Tests (push) Failing after 28m5s
CI / Unit & Component Tests (pull_request) Successful in 2m34s
CI / Backend Unit Tests (pull_request) Successful in 2m9s
CI / E2E Tests (pull_request) Failing after 30m11s
df89732f79
enrich/+page.svelte back link: text-gray-500 → text-ink-2 / hover:text-ink
enrich/done/+page.svelte body text: text-gray-500 → text-ink-2
enrich/done/+page.svelte list link: text-gray-400 (2.6:1, fails AA) → text-ink-2

Root fix for section label contrast (text-ink-3 uppercase pattern used
app-wide) is in PR #107 via the ink-3 token value change.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
marcel merged commit 5cf6947040 into main 2026-03-27 16:06:58 +01:00
marcel deleted branch feature/93-fix-label-contrast 2026-03-27 16:07:02 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#108