fix(ui): читаемая надпись состояния системы в светлой теме
«Внимание» / «Сбой» и счётчики в окне состояния системы были жёлтым и красным токеном фона (контраст 1.66 в светлой теме). Текст — токены *-foreground, как у бейджей ReUI; operational-a11y и server-rail снова без нарушений контраста. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9b2c2327a6
commit
2b0b9a5fa5
1 file changed
+4
-4
@@ -179,7 +179,7 @@ export function SystemMonitorPopover() {
|
||||
}
|
||||
>
|
||||
<Activity aria-hidden className={cn("size-4", tone === "destructive" ? "text-destructive" : tone === "warning" ? "text-warning" : "text-success")} />
|
||||
<span className={cn("hidden min-[1000px]:inline", tone === "destructive" ? "text-destructive" : tone === "warning" ? "text-warning" : "text-foreground")}>{label}</span>
|
||||
<span className={cn("hidden min-[1000px]:inline", tone === "destructive" ? "text-destructive-foreground" : tone === "warning" ? "text-warning-foreground" : "text-foreground")}>{label}</span>
|
||||
<span className="hidden items-center gap-1.5 tabular-nums min-[1240px]:inline-flex">
|
||||
<span className="bg-destructive size-1.5 rounded-full" aria-hidden />
|
||||
{errors}
|
||||
@@ -201,9 +201,9 @@ export function SystemMonitorPopover() {
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-1.5">
|
||||
{[
|
||||
{ n: errors, l: "сбой", c: "text-destructive" },
|
||||
{ n: warnings, l: "предупреждения", c: "text-warning" },
|
||||
{ n: Math.max(0, okCount), l: "в норме", c: "text-success" },
|
||||
{ n: errors, l: "сбой", c: "text-destructive-foreground" },
|
||||
{ n: warnings, l: "предупреждения", c: "text-warning-foreground" },
|
||||
{ n: Math.max(0, okCount), l: "в норме", c: "text-success-foreground" },
|
||||
].map((x) => (
|
||||
<span key={x.l} className="bg-muted/55 text-muted-foreground flex flex-col rounded-lg px-2.5 py-2 text-xs">
|
||||
<b className={cn("text-lg leading-tight font-semibold tabular-nums", x.c)}>{x.n}</b>
|
||||
|
||||
Reference in new issue
Block a user