From b0ecd9d1143363e4068c5ab3e27e7604e0037a3a Mon Sep 17 00:00:00 2001 From: MarcoDotIO Date: Wed, 11 Nov 2026 19:25:48 -0500 Subject: [PATCH] fix(web): warning and error text in the transcript is readable in light theme Approval, error, warning, and failed-subagent text in the chat transcript used the fill tokens text-warning and text-destructive, which measure 2.08:1 and 3.71:1 on the light canvas, below WCAG AA for text. Use the theme's text tokens text-warning-foreground and text-destructive-foreground for these labels and their alert icons (4.90:1 and 6.26:1 in light; dark rises from 9.84:1/5.96:1 to 12.19:1/7.27:1). Co-Authored-By: Claude Opus 5.5 --- .../chat/TimelinePendingApprovalRow.tsx | 4 ++-- .../components/chat/TimelineWorkEntryRow.tsx | 18 ++++++++++++------ .../web/src/components/chat/V2LifecycleRow.tsx | 7 +++++-- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx b/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx index c425d560bf131..5cb32cb6c1cf4 100644 --- a/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx +++ b/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx @@ -74,7 +74,7 @@ export const TimelinePendingApprovalRow = memo(function TimelinePendingApprovalR
{canRespond ? ( <> - + Waiting for approval @@ -96,7 +96,7 @@ export const TimelinePendingApprovalRow = memo(function TimelinePendingApprovalR ) : null} ) : ( - + Provider process is gone. Interrupt or restart the run to respond. )} diff --git a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx index 253c83de3f4db..c8daf2ba12b4c 100644 --- a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx +++ b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx @@ -269,12 +269,18 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { wrapLabel icon={ } label={ {label} @@ -395,9 +401,9 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { const iconWrapperClass = cn( "flex size-4 items-center justify-center", showWarningIndicator - ? "text-warning" + ? "text-warning-foreground" : showDestructiveRowStyle - ? "text-destructive" + ? "text-destructive-foreground" : showFailedIndicator ? failedToolIconClassName : workEntry.tone === "tool" @@ -405,9 +411,9 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { : iconConfig.className, ); const headingClass = showWarningIndicator - ? "font-medium text-warning" + ? "font-medium text-warning-foreground" : showDestructiveRowStyle - ? "font-medium text-destructive" + ? "font-medium text-destructive-foreground" : workLogEntryIsToolLike(workEntry) ? "text-secondary-label" : "text-foreground/80"; diff --git a/apps/web/src/components/chat/V2LifecycleRow.tsx b/apps/web/src/components/chat/V2LifecycleRow.tsx index 40fffaf608412..d61a830fbd35d 100644 --- a/apps/web/src/components/chat/V2LifecycleRow.tsx +++ b/apps/web/src/components/chat/V2LifecycleRow.tsx @@ -471,7 +471,7 @@ function SubagentTimelineLink(props: { {detail === null ? ( @@ -485,7 +485,10 @@ function SubagentTimelineLink(props: { {detail !== null && (props.event !== undefined || status !== "completed") ? ( {statusLabel}