Repository navigation
Conversation
placeholder:text-muted-foreground/60 composites to 2.30:1 on the light field background and 3.33:1 on the dark one (dark:bg-input/30), both under the 4.5:1 AA floor. The muted-foreground token is already the de-emphasized tier, so use it at full strength: 4.74:1 light, 7.07:1 dark. A test computes the ratio from main.css and each component's classes for both themes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughInput and Textarea placeholders now use full-opacity muted foreground instead of 60% opacity. New tests calculate placeholder contrast against field backgrounds in light and dark themes and require a ratio of at least 4.5:1. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to This updates placeholder colors in shared inputs and textareas to meet WCAG AA contrast, and adds tests that guard the result. I found no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Important
The new test file fails the changed-code-quality casting gate, so the static analysis and typecheck CI job will be red until the as Rgb assertions are removed. pnpm lint does not run that gate, which is why it passes locally.
Reviewed changes
- Placeholder contrast fix —
InputandTextareadrop the/60alpha onplaceholder:text-muted-foreground, restoring the full--muted-foregroundtier (4.74:1 light, 7.07:1 dark). Correct and complete for the two shared primitives. - Contrast regression test — a new
field-placeholder-contrast.test.tsreadsmain.css, composites the placeholder and field colors per theme, and asserts ≥4.5:1 for both primitives. It is non-vacuous: reverting the/60makes all four cases fail at exactly the ratios the issue reports.
ℹ️ Bespoke fields still use sub-AA placeholders
The fix is correct for the shared primitives and closes #25561 as written, but the "covers every field at once" framing is narrower in practice: several fields that bypass Input/Textarea still render placeholders at text-muted-foreground/60 or lower, so they remain under 4.5:1. Worth a follow-up only if the intent is app-wide AA.
Technical details
# Remaining sub-AA placeholder sites
## Affected sites
- `src/renderer/src/components/native-chat/NativeChatComposerField.tsx:280` — `placeholder:text-muted-foreground/60`
- `src/renderer/src/components/settings/RepositoryHookScriptSetting.tsx:204` — `placeholder:text-muted-foreground/60`
- `src/renderer/src/components/right-sidebar/source-control/panel/header-toolbar.tsx:282` — `placeholder:text-muted-foreground/60`
- `src/renderer/src/components/task-page/linear/IssueDialog.tsx:121` — `/40`, and `:131` — `/45`
- `src/renderer/src/components/right-sidebar/SearchFilters.tsx:30,47` — `/50`
## Required outcome
- Decide whether app-wide WCAG AA for placeholders is in scope; if so these need the same treatment or a shared placeholder token.
## Open questions for the human
- Is the goal only the two primitives (issue scope), or every placeholder surface?deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Dropped the
as Rgbcasts in the new contrast test:type Rgbis nownumber[]and both assertions are gone, clearing the changed-code-quality casting gate the prior review flagged. Verified at4ddf8f3— the casting scan exits 0 and all four contrast cases pass. The renderer typecheck config does not enablenoUncheckedIndexedAccess, so the tuple-to-array relaxation introduces no type error.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
Closing as superseded by #36561, which fixes the built-in color defaults (WCAG AA pairs, light-mode active tab and the TOC scrollbar). Thank you for this PR, it shaped the design. |

ELI5
The grey hint text inside empty text boxes was too faint to read comfortably. It was a grey that's already meant to be quiet, then made 40% see-through on top of that. This change drops the see-through part, so the hint uses the normal quiet grey and is readable in light and dark mode.
What Changed
InputandTextareaplaceholders renderedtext-muted-foreground/60: 2.30:1 on light, 3.33:1 on dark.text-muted-foregroundat full strength: 4.74:1 on light, 7.07:1 on dark. Both are above the 4.5:1 AA floor for normal text.ui/input.tsxand one inui/textarea.tsx. A new test,ui/field-placeholder-contrast.test.ts, readsmain.cssand each component's class string, composites the placeholder and field colors (includingdark:bg-input/30over--background), and asserts at least 4.5:1 for both components in both themes.Why
The token is already the documented secondary-text tier, so it's the right role for a placeholder. Adding another alpha step only made it fainter. Keeping the fix in the shared primitives covers every field at once without adding a new color. The test derives the ratio from the real tokens and classes, so a later token or opacity change that drops below AA fails CI.
Linked Issue
Fixes #25561
Visual Proof
Before/after screenshots (light and dark) will be attached by the author.
Measured contrast, placeholder vs. field background:
Testing
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/ui/field-placeholder-contrast.test.tspnpm lint: pass.pnpm typecheck: pass.Full
pnpm testnot run locally; CI will cover it.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Claude Opus 5.5); reviewed by the author.
Review
--foreground), so filled and empty fields remain distinguishable. No layout change.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)