Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadio
维护者通常 1 天内回复
@standard-librarian 已经在做这个了。
开始于 2026年12月2日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- accessibility, design, frontend
调研方向
阅读 apps/web/src/components/ui/radio-group.tsx,并将 Radio 的样式与 apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx 中的 OptionRadio 以及 apps/web/src/components/ui/checkbox.tsx 中的对比度变体进行比较。检查列出的 Radio 调用位置,了解共享样式出现在哪里,然后在深色模式下确认未选中的圆圈具有清晰可见的边框,并符合既定的对比度处理方式。
由索引模型根据 Issue 内容生成。
描述
What happened
In dark mode, the radio buttons in the Move thread to project dialog appear very faint / low-opacity.
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),--inputis--alpha(var(--color-white) / 11%), andbg-input/32is ~3.5% white over the#080808dialog surface. - Other controls in
apps/webalready worked around this low-visibility border:Checkbox(apps/web/src/components/ui/checkbox.tsx, lines 11–14) added acontrastvariant (border-foreground/55), used byComposerPendingUserInputPanel.tsx(line 297).OptionRadio(apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx, lines 358–371) drawsui/radio-group's look but overrides the border toborder-foreground/55.
- Every caller using
<Radio>fromui/radio-group.tsxstill gets the much dimmerborder-inputstyling: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
- Run T3 Code Desktop in default dark mode.
- Open Move thread to project on a thread (
ThreadWorkspaceDialog) or any of the other dialogs/settings above that renderui/radio-group's<Radio>. - Observe the faint borders/fills on unselected radio circles compared to
OptionRadioin 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",
};
Related issues
#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
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 2 小时 25 分钟
- 30 天内合并 PR
- 519
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
via-triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed可能已有人在做 @maxwellyoung 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#46052 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
melgarafael/DeskcommCRM#5614 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 76/100
slackapi/slack-health-score#253 ·
维护者通常 1 天内回复
-
feature needs triage site
难度 2/5 1-3 小时 新手友好度 64/100
owid/owid-grapher#8019 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
simstudioai/sim#10710 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 73/100
callstackincubator/simlock#2088 ·
维护者通常 1 天内回复