From 126b567b7b243ede3bc000300b70b07d9dbcc4f7 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sun, 7 Jun 2026 07:26:06 +0200 Subject: [PATCH] =?UTF-8?q?fix(mui):=20StatCard=20icon=20=E2=80=94=20solid?= =?UTF-8?q?=20color=20tile=20+=20white=20glyph=20(was=20low-contrast/dark)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/ui/StatCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/admin/ui/StatCard.tsx b/src/admin/ui/StatCard.tsx index a5bd9fb..ec9cdaa 100644 --- a/src/admin/ui/StatCard.tsx +++ b/src/admin/ui/StatCard.tsx @@ -30,8 +30,10 @@ export default function StatCard({ color = "default", footer, }: StatCardProps) { - const iconBg = color === "default" ? "action.hover" : `${color}.light`; - const iconColor = color === "default" ? "text.secondary" : `${color}.main`; + // Solid tile + white glyph: high-contrast in both themes (the old light tint + // left the icon dark/low-visibility, esp. for the default variant). + const iconBg = color === "default" ? "grey.600" : `${color}.main`; + const iconColor = "common.white"; return (