@devries-cameron20 / t3code Mirror · read-only / commits / 0815d98cd7
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 23:30 UTC

fix(web): make Q&A option outlines visible across themes (#34178)

Yash Singh committed Nov 10, 2026 at 23:15 UTC 0815d98cd7dc8589e99fedca9fb8426b8a05318e
2 files changed +28 -6
apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
+2 -2
@@ -285,7 +285,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
285 <>
286 <span className="pointer-events-none flex h-5 shrink-0 items-center">
287 {activeQuestion.multiSelect ? (
288 - <CheckboxMark checked={isSelected} />
288 + <CheckboxMark checked={isSelected} variant="contrast" />
289 ) : (
290 <OptionRadio checked={isSelected} />
291 )}
@@ -340,7 +340,7 @@ function OptionRadio({ checked }: { checked: boolean }) {
340 <span
341 aria-hidden
342 className={cn(
343 - "relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-full border border-input bg-background not-dark:bg-clip-padding sm:size-4 dark:bg-input/32",
343 + "relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-full border border-foreground/55 bg-background not-dark:bg-clip-padding sm:size-4 dark:bg-input/32",
344 checked ? "shadow-none" : "shadow-xs/5",
345 )}
346 >
apps/web/src/components/ui/checkbox.tsx
+26 -4
@@ -8,10 +8,21 @@ const rootClassName =
8 const indicatorClassName =
9 "-inset-px absolute flex items-center justify-center rounded-[.25rem] text-primary-foreground data-unchecked:hidden data-checked:bg-primary data-indeterminate:text-foreground in-[[data-slot=checkbox]:focus-visible]:inset-shadow-[0_0_0_3px_var(--background)] in-[[data-slot=checkbox]:focus-visible]:outline-2 in-[[data-slot=checkbox]:focus-visible]:outline-solid in-[[data-slot=checkbox]:focus-visible]:-outline-offset-2 in-[[data-slot=checkbox]:focus-visible]:outline-inherit";
10
11 -function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
11 +const variantClassNames = {
12 + default: "",
13 + contrast: "border-foreground/55",
14 +};
15 +
16 +type CheckboxVariant = keyof typeof variantClassNames;
17 +
18 +function Checkbox({
19 + className,
20 + variant = "default",
21 + ...props
22 +}: CheckboxPrimitive.Root.Props & { variant?: CheckboxVariant }) {
23 return (
24 <CheckboxPrimitive.Root
14 - className={cn(rootClassName, className)}
25 + className={cn(rootClassName, variantClassNames[variant], className)}
26 data-slot="checkbox"
27 {...props}
28 >
@@ -60,10 +71,21 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
71 }
72
73 // Checkbox's look without its hidden input, for a row that is itself the button.
63 -function CheckboxMark({ checked }: { checked: boolean }) {
74 +function CheckboxMark({
75 + checked,
76 + variant = "default",
77 +}: {
78 + checked: boolean;
79 + variant?: CheckboxVariant;
80 +}) {
81 const state = checked ? { "data-checked": "" } : { "data-unchecked": "" };
82 return (
66 - <span aria-hidden className={rootClassName} data-slot="checkbox" {...state}>
83 + <span
84 + aria-hidden
85 + className={cn(rootClassName, variantClassNames[variant])}
86 + data-slot="checkbox"
87 + {...state}
88 + >
89 <span className={indicatorClassName} data-slot="checkbox-indicator" {...state}>
90 <svg
91 className="size-3.5 text-current sm:size-3"