fix: stat label invisible on light mode when selected
The active metric label (e.g. UNIQUE VISITORS) was white on a near-white background. Switch to brand orange for visibility in both themes.
This commit is contained in:
@@ -351,7 +351,7 @@ export default function Chart({
|
||||
metric === m.key && 'bg-neutral-50 dark:bg-neutral-800/40',
|
||||
)}
|
||||
>
|
||||
<div className={cn('text-[10px] font-semibold uppercase tracking-widest mb-2', metric === m.key ? 'text-white' : 'text-neutral-400 dark:text-neutral-500')}>{m.label}</div>
|
||||
<div className={cn('text-[10px] font-semibold uppercase tracking-widest mb-2', metric === m.key ? 'text-brand-orange' : 'text-neutral-400 dark:text-neutral-500')}>{m.label}</div>
|
||||
<div className="flex items-baseline gap-2">
|
||||
<span className="text-2xl font-bold text-neutral-900 dark:text-white">{m.format(m.value)}</span>
|
||||
{m.change !== null && (
|
||||
|
||||
Reference in New Issue
Block a user