[2.3] Accessible Color Contrast on Cards #7

Closed
opened 2026-03-13 11:25:26 +01:00 by shahondin1624 · 0 comments

User Story

As a user, I want text on color-coded cards to be legible in both themes.

Acceptance Criteria

  • Replace if (isInDarkMode) Color.Black else Color.White with luminance-based contrast calculation
  • Minimum WCAG 4.5:1 contrast ratio
  • Utility function contrastTextColor(backgroundColor) in theme package

Notes

Affects Attribute.kt and Talent.kt card text colors. Current approach may fail for mid-luminance colors.

## User Story **As a** user, **I want** text on color-coded cards to be legible in both themes. ## Acceptance Criteria - [ ] Replace `if (isInDarkMode) Color.Black else Color.White` with luminance-based contrast calculation - [ ] Minimum WCAG 4.5:1 contrast ratio - [ ] Utility function `contrastTextColor(backgroundColor)` in theme package ## Notes Affects `Attribute.kt` and `Talent.kt` card text colors. Current approach may fail for mid-luminance colors.
shahondin1624 added this to the Phase 7: Polish milestone 2026-03-13 11:25:26 +01:00
shahondin1624 added the epic:cards-reworkpriority:should-have labels 2026-03-13 11:28:03 +01:00
Sign in to join this conversation.