fix(tradein/v2): a11y contrast — source badges ≥AA в оверлеях (#2062) #2079

Merged
lekss361 merged 1 commit from fix/tradein-v2-a11y-contrast into main 2026-06-28 19:21:37 +00:00
2 changed files with 5 additions and 2 deletions

View file

@ -347,7 +347,9 @@ export default function HistoryView({
border: `1px solid ${tokens.line2}`,
borderRadius: "3px",
padding: "1px 5px",
color: tokens.accent,
// accentDeep (not accent): 8px accent on badgeTint ~2.8:1 < AA;
// accentDeep keeps the blue brand cue at ≈5:1.
color: tokens.accentDeep,
}}
>
{r.source ?? "—"}

View file

@ -96,7 +96,8 @@ const badge: CSSProperties = {
border: `1px solid ${tokens.line2}`,
borderRadius: 3,
padding: "2px 8px",
color: tokens.muted,
// body2 (not muted): 9px muted on badgeTint was ~3.3:1 < AA; body2 ≈ 6.3:1.
color: tokens.body2,
};
const chip: CSSProperties = {