fix(web): give unselected radio borders enough contrast in dark mode #47735
main fromrefs/pull/47735/head·opened View on GitHubCloses https://github.com/pingdotgg/t3code/issues/47511
Unselected shared Radio controls nearly disappear in dark mode because their border uses border-input. Use border-foreground/55, matching OptionRadio and the contrast Checkbox. This also darkens the light-theme border. Selection, focus and disabled behavior are unchanged.
The branch update preserves main's [aria-invalid=true] shadow fix. The final diff remains one border-class replacement in apps/web/src/components/ui/radio-group.tsx. Every shared Radio caller inherits it; native mobile uses a separate component.
Fresh proof at d17d08749d171d6b37b84f9b82526de025a09e7b used the actual built Electron app on macOS 27.2.1 ARM64, Electron 44.10.1. Both builds passed vp run build:desktop, 6/6 tasks. In Settings > Appearance > Sidebar thread rows > Row height, unselected rings are stronger and the keyboard focus outline remains unchanged in dark and light themes.
Each comparison shows old border on the left and final head on the right. The baseline changes only the border back to border-input at the current head, retaining the upstream invalid-state selector. It is not a full historical-base build.
vp run check:changed passed at this head against d1bdc102c2b1762ade09656b418ee6d2b3321df9, including format, lint, knip, two package typechecks and React Compiler coverage. Independent source review found no correctness issues. Main at dfba2c3b056816d0817fc9bfa2203689fa6b4469 does not change the radio, its callers or theme CSS beyond the changes preserved in this branch. No tests or assertions added.
Not exercised: Move thread to project and the other Radio callers, disabled/invalid rendering, custom themes, Windows/Linux builds, signed packaging and native OS keyboard delivery. The focus captures used trusted Chromium keyboard events in the actual Electron renderer. The app was isolated from user data and accounts, then stopped; the final checkout was restored clean.
Original patch made with Claude Code. Branch repair and fresh verification used GPT-6.2 Sol and GPT-6.1 Sol in Codex.
- 1
- 2
- 3
Pushedd17d087
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes