From df02b7cdca12de759ea5e2f61d0c4981eb66dd13 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Wed, 4 Feb 2026 00:14:50 +0000 Subject: [PATCH] fix(ui): repair question tool styling Use token-backed surface/background classes for the question tool cards and ensure radio/checkbox inputs use accent-color so the view renders correctly in both light and dark themes. --- .../components/tool-call/question-block.tsx | 20 ++++++++++--------- 1 file changed, 11 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 7e273fac..215f48aa 100644 --- a/packages/ui/src/components/tool-call/question-block.tsx +++ b/packages/ui/src/components/tool-call/question-block.tsx @@ -199,7 +199,7 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { const customChecked = () => customValue().length > 0 return ( -
+
{t("toolCall.question.number", { number: i() + 1 })} {q?.header} @@ -226,6 +226,7 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { }} type={inputType()} name={groupName()} + class="mt-0.5 accent-[var(--accent-primary)]" checked={checked()} disabled={!props.active() || props.submitting()} onChange={() => toggleOption(i(), opt.label)} @@ -249,6 +250,7 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { }} type={inputType()} name={groupName()} + class="mt-0.5 accent-[var(--accent-primary)]" checked={customChecked()} disabled={!props.active() || props.submitting()} onChange={(e) => { @@ -265,14 +267,14 @@ export function QuestionToolBlock(props: QuestionToolBlockProps) { toggleFromCustomInput(i(), input) }} /> -
-
{t("toolCall.question.custom.label")}
- +
{t("toolCall.question.custom.label")}
+ { if (!props.active()) return // Keep the radio/checkbox selected while editing.