Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Form controls now apply invalid styling only when aria-invalid is true, rather than whenever the attribute exists. The change is presentation-only and leaves validation and data handling unchanged. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate 1176001
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 74096ec
docs/internals/15_testing.md asks for before/after captures, not UI tests, as proof for purely visual fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 049c409
EvidenceEnvironment: real web dev app, Chromium, 1280×800, light theme, fresh synthetic project and database per commit. Secrets enabled with On both commits: open Settings → Keybindings, search Command Palette, open its When clause, replace !terminalFocus with terminalFocus, capture focused, press Tab and capture resting; capture a 200% detail; replace the expression with terminalFocus && and capture the parse error. Then open environment-scoped Settings → Secrets, Add provider, enter Name Example and Account example.1password.com, click the dialog heading to blur, and capture the two valid Input controls. Hold focused, blurred, invalid, and dialog states for two seconds each. Scenario: Valid When fields retain normal borders and resting shadowsProven: the scenario fails on base 9b6695525c and passes on head 049c4091cd.
Pixel crops use nearest-neighbor enlargement of the original resting stills. Recordings show two seconds focused valid, roughly three seconds blurred valid, then invalid; startup splash is removed. Scenario source. Run with Coverage: InputGroup border, focused ring, outer resting shadow and Not shown:
|














Note
🤖 Claude Opus 5.5 on behalf of Oliver
Problem
Valid fields could pick up invalid styling. Many callers pass a plain boolean (
aria-invalid={hasError}), so a valid field rendersaria-invalid="false". Severalui/primitives matched[aria-invalid]by presence alone, so"false"counted as invalid too.InputGroup: the whole group got the red invalid border. You can see it on the When expression in Settings → Keybindings: it was red even when the expression was valid.Input,Textarea,Select,NumberField,Checkbox,RadioGroup: these used the presence selector only to drop their resting drop shadow (shadow-none). So a valid field lost its shadow, but its border, ring and color were already right, because those use Tailwind'saria-invalid:variant (="true").Fix
Every one of these selectors now matches
aria-invalid=true, the same rule thearia-invalid:variant already uses. Invalid fields look exactly as before.Affected callers that pass a boolean: the When expression in
KeybindingsSettings(red border), plusBrowserDeviceToolbar,SavedViewsMenu,AddProviderInstanceDialog,ProviderInstanceCard,SecretProviderDialog,ProjectIconPickerDialog,ThemeColorPickerandSecretSourceInput(missing shadow).Scope and approval
A small, obvious bug with no issue filed. Only the selector strings in the seven
ui/primitives change, plus one browser test file.Verification
aria-invalid={false}looks the same as no attribute, and thataria-invalidtrue still differs. It covers theInputGroupborder and theInputandTextareashadow. It fails on main and passes here.vp run check:changedpasses.What to look for: before, the valid
terminalFocushas a red border (boxed). After, it has the normal border. The invalidterminalFocus &&is red in both.Made with Claude Opus 5.5 in Claude Code (T3 Code).