fix: keep stat number and unit colors when filter is active

Only the label text turns white on click; accent colors on values and 건 opacity stay unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-06 00:03:42 +09:00
parent 600a730750
commit 3415286425
2 changed files with 1 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ function StatClick({ label, value, statusKey, activeStatus, accent, onClick }: S
}`} }`}
> >
{label}{' '} {label}{' '}
<span className={`poly-stat-val font-extrabold ${isActive ? '' : accent}`}>{value}</span> <span className={`poly-stat-val font-extrabold ${accent}`}>{value}</span>
<span className="poly-stat-unit text-[14px] font-medium opacity-50"></span> <span className="poly-stat-unit text-[14px] font-medium opacity-50"></span>
</button> </button>
); );

View File

@@ -173,8 +173,3 @@ body,
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
} }
.poly-click-stat.active .poly-stat-val,
.poly-click-stat.active .poly-stat-unit {
color: #fff;
opacity: 1;
}