From a6b1f4ba190a763775cf093ab6ad05cdb8288dcb Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Wed, 4 Feb 2026 00:20:19 +0000 Subject: [PATCH] fix(ui): improve question tool contrast Make question tool prompt, labels, and the type pill use primary text color for readability in light mode, and bump the Q header line to text-sm. --- .../components/tool-call/question-block.tsx | 18 +++++++++--------- packages/ui/src/styles/messaging/tool-call.css | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/ui/src/components/tool-call/question-block.tsx b/packages/ui/src/components/tool-call/question-block.tsx index 215f48aa..bea2aa97 100644 --- a/packages/ui/src/components/tool-call/question-block.tsx +++ b/packages/ui/src/components/tool-call/question-block.tsx @@ -199,9 +199,9 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { const customChecked = () => customValue().length > 0 return ( -
+
-
+
{t("toolCall.question.number", { number: i() + 1 })} {q?.header}
@@ -209,7 +209,7 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) {
-
{q?.question}
+
{q?.question}
@@ -232,7 +232,7 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { onChange={() => toggleOption(i(), opt.label)} />
-
{opt.label}
+
{opt.label}
{opt.description}
@@ -267,12 +267,12 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { toggleFromCustomInput(i(), input) }} /> -
-
{t("toolCall.question.custom.label")}
- +
{t("toolCall.question.custom.label")}
+ { diff --git a/packages/ui/src/styles/messaging/tool-call.css b/packages/ui/src/styles/messaging/tool-call.css index 6270e536..67c6de3c 100644 --- a/packages/ui/src/styles/messaging/tool-call.css +++ b/packages/ui/src/styles/messaging/tool-call.css @@ -322,6 +322,7 @@ border-radius: 0.375rem; border: 1px solid var(--tool-call-border-color, var(--border-base)); background-color: var(--surface-code); + color: var(--text-primary); } .tool-call-permission-title code {