TypeScript
fix(web): allow full contrast in assistant replies (#12405)
mariaadcd90858c3b
diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsxindex abebe4841cb..8da35ee35ce 100644--- a/apps/web/src/components/ChatMarkdown.tsx+++ b/apps/web/src/components/ChatMarkdown.tsx@@ -863,7 +863,10 @@ function MarkdownDetails({<span>{summary}</span></CollapsibleTrigger><CollapsiblePanel>- <div className="pb-3 ps-6 text-foreground/80" data-markdown-details-content="">+ <div+ className="pb-3 ps-6 text-foreground/[calc(80%+var(--appearance-contrast-boost)/5)]"+ data-markdown-details-content=""+ >{content}</div></CollapsiblePanel>@@ -3332,7 +3335,7 @@ function ChatMarkdown({<divref={markdownRef}className={cn(- "chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/80 [overflow-wrap:anywhere] [word-break:break-word]",+ "chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/[calc(80%+var(--appearance-contrast-boost)/5)] [overflow-wrap:anywhere] [word-break:break-word]",className,)}// Gates the fade-in for blocks that arrive while the response streams.