fix(tradein): money-screen contrast AA (#834 fixup) (#869)
Some checks failed
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been cancelled
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped

Co-authored-by: bot-frontend <bot-frontend@gendsgn.local>
Co-committed-by: bot-frontend <bot-frontend@gendsgn.local>
This commit is contained in:
bot-frontend 2026-05-31 08:00:18 +00:00 committed by bot-reviewer
parent 10b4b02446
commit e85d2980b6
2 changed files with 5 additions and 3 deletions

View file

@ -65,7 +65,9 @@ export function PriceTrendCard({ estimate }: Props) {
<div>
За <b className="mono">{data.length}</b> мес.
</div>
<div style={{ marginTop: 4, color: up ? "var(--viz-3)" : "var(--accent-2)" }}>
{/* #834 a11y: viz-палитра (--viz-3 #36a558 3.14:1 / --accent-2) bar-цвета,
на белом тексте не проходят AA. Семантические токены: success/danger 4.9:1. */}
<div style={{ marginTop: 4, color: up ? "var(--success)" : "var(--danger)" }}>
{up ? "▲" : "▼"} {Math.abs(changePct).toFixed(1)}%
</div>
</div>

View file

@ -41,11 +41,11 @@ function BucketCard({ bucket }: { bucket: SellTimeBucket }) {
{hasData ? `~${bucket.median_exposure_days} дн.` : "—"}
</div>
{hasData && bucket.p25_days != null && bucket.p75_days != null && (
<div style={{ fontSize: 10, color: "#6b7280", marginTop: 4 }}>
<div style={{ fontSize: 10, color: "#5f6570", marginTop: 4 }}>
обычно {bucket.p25_days}{bucket.p75_days} дн.
</div>
)}
<div style={{ fontSize: 10, color: "#6b7280", marginTop: 2 }}>
<div style={{ fontSize: 10, color: "#5f6570", marginTop: 2 }}>
{bucket.n_lots > 0
? `${bucket.n_lots} аналог${bucket.n_lots === 1 ? "" : bucket.n_lots < 5 ? "а" : "ов"}`
: "нет данных"}