Forums Bug Reports Thread

Retro-game card placeholder uses a theme-blind hardcoded #2a2a4a background

Patrick Bass · Jun 6 · 10 · 1 Locked
[Minor] [Normal Priority] [Bug Fixed] [Always Reproduces]
🚀 OP Jun 6, 2026 6:54pm

Area: Engagement (audit p9) · Surface: /games/{platform} · Dimension: contrast · Severity: minor

The no-screenshot fallback card for platform games paints var(--color-primary) on a hardcoded dark navy (#2a2a4a). The background never changes with the theme, so in the light theme the blue gamepad icon sits at 2.66:1 against the dark panel — a low-contrast, off-theme dark block in an otherwise light page. Law 3 wants semantic tokens, not hardcoded dark-mode colors that survive into the light theme.

Evidence

platform/templates/games/platform/index.php:156 `<div style="height:180px;background:#2a2a4a;display:flex;align-items:center;justify-content:center;color:var(--color-primary);font-size:3rem;"><i class="fas fa-gamepad"></i></div>`. In the light theme --color-primary resolves to #2563eb (style.css:9959); #2563eb on #2a2a4a measures 2.66:1, below the 3:1 AA threshold for graphical objects/icons.

Suggested fix. Swap background:#2a2a4a for a semantic surface token (e.g. background: var(--color-bg-elevated) or var(--color-bg-card)) so the placeholder follows the active theme, and keep color: var(--color-text-muted) for the icon. The same fix applies to the screenshot wrapper background:#000 at index.php:151 if a non-image case can show through.

Filed by the automated tenant-app audit and adversarially evidence-verified. Status: verified. Open — not yet actioned.


Patrick Bass
@mobieus

🚀 Jun 7, 2026 5:44am

Resolved — fixed and deployed. Commit 059d6bf29b6f, shipped dev-first then to all tenants on 2026-06-06.

Swapped the placeholder card's hardcoded background:#2a2a4a for var(--color-bg-elevated) and changed its icon color from --color-primary to --color-text-muted (index.php:156). Also swapped the screenshot wrapper's background:#000 for var(--color-bg-elevated) (index.php:151) as the fix directed, so both now follow the active theme.

Status: fixed. Thread closed and locked.


Patrick Bass
@mobieus

Log in or register to reply to this thread.