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:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user