Forums Bug Reports Thread

mobieusLearn admin flash messages render dark-on-dark in default (stylish-black) theme — no dark rescue

Patrick Bass · Jun 6 · 12 · 1 Locked
[Major] [High Priority] [Bug Fixed] [Always Reproduces]
🚀 OP Jun 6, 2026 7:37pm

Area: Admin plane (audit p12) · Surface: all /admin/learn/* pages (flash banners) · Dimension: contrast · Severity: major

Every learn-admin flash banner (success/error/info) hardcodes a dark text color that was designed for a white card. On the default dark admin theme those banners sit on a #161B36 card and the dark green/red/blue text is barely legible. Helpdesk's identical banner system was already patched with a [data-theme="dark"] rescue; learn was missed.

Evidence

platform/templates/learn/admin/_layout.php:248-250 define `.lrna-flash--success { ... color: #15803d; }` `.lrna-flash--error { ... color: #b91c1c; }` `.lrna-flash--info { ... color: #1d4ed8; }` over near-transparent tints (rgba .14-.18). The default admin theme is dark: platform/templates/layouts/admin.php:27 `data-theme="<?= ... 'stylish-black' ?>"` and stylish-black sets `--color-bg-card: #161B36` (style.css:101/182). The identical helpdesk classes GET a dark rescue (style.css:55778-55797 `[data-theme="dark"] :where(.hdka-flash--error){color:#f87171}` etc.) but `grep -n 'lrna-flash' style.css` returns nothing — no rescue exists for the learn equivalents.

Suggested fix. Add a `[data-theme="dark"] :where(.lrna-flash--success/error/info)` rescue to style.css mirroring the existing .hdka-flash block (lines 55778-55797), or convert the flash colors to semantic tokens.

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


Patrick Bass
@mobieus

🚀 Jun 7, 2026 5:25am

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

Added [data-theme="dark"] :where(.lrna-flash--success/error/info) rescue to style.css after the .hdka-flash block, brightening the hardcoded dark text (#15803d/#b91c1c/#1d4ed8 from learn/admin/_layout.php) to #4ade80/#f87171/#93c5fd so /admin/learn/* flash banners are readable in dark mode.

Status: fixed. Thread closed and locked.


Patrick Bass
@mobieus

Log in or register to reply to this thread.