Skip to content
Source
Sign inSign up
pingdotgg/t3code

Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadio #47511

Openvibhor1102(GitHub profile, opens in a new tab) opened this issue 0 comments
vibhor1102(GitHub profile, opens in a new tab)commented

What happened

In dark mode, the radio buttons in the Move thread to project dialog appear very faint / low-opacity.

image

Diagnosis

Radio in apps/web/src/components/ui/radio-group.tsx (lines 16–32) uses border-input and dark:not-data-checked:bg-input/32.

  • In default dark mode (apps/web/src/index.css, line 1253), --input is --alpha(var(--color-white) / 11%), and bg-input/32 is ~3.5% white over the #080808 dialog surface.
  • Other controls in apps/web already worked around this low-visibility border:
    • Checkbox (apps/web/src/components/ui/checkbox.tsx, lines 11–14) added a contrast variant (border-foreground/55), used by ComposerPendingUserInputPanel.tsx (line 297).
    • OptionRadio (apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx, lines 358–371) draws ui/radio-group's look but overrides the border to border-foreground/55.
  • Every caller using <Radio> from ui/radio-group.tsx still gets the much dimmer border-input styling:
    • apps/web/src/components/chat/ThreadWorkspaceDialog.tsx (lines 196, 207)
    • apps/web/src/components/chat/ThreadHandoffDialog.tsx (line 144)
    • apps/web/src/components/chat/LinkRequestCard.tsx (lines 518, 528)
    • apps/web/src/components/settings/ChatGptAccountPicker.tsx (lines 72, 77)
    • apps/web/src/components/settings/SidebarRowLayoutRow.tsx (line 895)

Steps to reproduce

  1. Run T3 Code Desktop in default dark mode.
  2. Open Move thread to project on a thread (ThreadWorkspaceDialog) or any of the other dialogs/settings above that render ui/radio-group's <Radio>.
  3. Observe the faint borders/fills on unselected radio circles compared to OptionRadio in the composer question card.

Version

0.1.14-nightly.20261202.5597 (commit 909351f92e9a6ef8d01887972774967db4c98165)

Environment

Linux x64 (7.3.6-200.fc44.x86_64), Node v24.22.1, T3 Code Desktop

Evidence

# apps/web/src/components/ui/radio-group.tsx:20
"relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-full border border-input ... dark:not-data-checked:bg-input/32 ..."

# apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx:363 (OptionRadio)
"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"

# apps/web/src/components/ui/checkbox.tsx:11-14
const variantClassNames = {
  default: "",
  contrast: "border-foreground/55",
};

#42259 covers dark-mode muted text contrast across built-in themes, whereas this is specifically about ui/radio-group.tsx still using border-input inconsistently with OptionRadio and Checkbox variant="contrast".

Fix applied or workaround

Raising Settings → Appearance → Contrast boosts --contrast-input (apps/web/src/index.css, lines 1656–1660) and makes unselected radio borders more visible.

Filed by

Antigravity (Gemini 4 Hydrogen) via t3 triage

  1. vibhor1102(GitHub profile, opens in a new tab) added labelsvia-triage

  2. tanstack-source added labelsbug

Sign in to join this conversation.