Repository navigation
fix(web): reserve the accent color for selection and focus - #1329
Merged
Merged
Conversation
The browser review page used the theme accent for pressed toggles, checked segments, the active panel tab, every note card, and the minimap viewport as well as for the selected hunk and file. An "on" control now uses a neutral raised fill, so the accent marks only where the reviewer is and what has keyboard focus. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
[Medium impact] This PR appears safe to merge. SummaryThis PR tones down browser review controls and note cards so the accent stands out around selection and focus.
Known limitation noted by benvinegar: active stream note cards remain neutral until a later PR adds an active marker. No actionable issues found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "fix(web): reserve the accent color for s..." · Reviewed by Greptile |
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On the browser review page the theme accent marks about ten unrelated things: pressed toolbar toggles, the checked segment of every segmented control (Auto/Split/Unified, Tree/Flat, Diff/Rendered, image modes), the active side-panel tab, every note card's border and author, the minimap viewport, and also the selected file and hunk. With line numbers on, that toggle is the loudest thing in the toolbar, and the accent no longer tells a reviewer where they are.
Approach
CSS only, in
packages/hunk/src/web/styles.css.--hunk-panel-altfill,--hunk-borderedge,--hunk-textlabel, and a 2px inset bar so on and off differ by more than color.--hunk-text.--hunk-border; the author label is--hunk-textat weight 600.--hunk-mutedoutline.Unchanged, and still accent: the selected hunk rail, the selected file, the Notes panel's selected row, picker and palette highlights, focus rings, the open composer, the composer's primary button, agent highlights, and native
accent-color.Non-goals and known limitation
No markup, layout, or icon changes; those are later in the stack. The active note card in the stream does not get the accent back here, because cards carry no active marker in the DOM. The note-thread PR in this stack adds it.
Tests
test/web/review-shell.e2e.ts: a pressed toggle and a checked segment resolve to colors other than the accent tokens.bun run typecheck,bun run lint,bun run format:check,bun run deps:check: pass.bun test packages/hunk/src/web: 262 pass, 0 fail.bun run test:web: 113 passed, 7 skipped (the opt-in capture specs), 0 failed, including the axe suite.Checked visually in
github-dark-default,github-light-default,dracula, andsolarized-lightwith the opt-in capture suites. Platform: macOS only.Stack
1 of 9. Each PR is based on the one above it in this table and contains only its own change.
mainMerge order: 1 to 9, from the top of the table. After a PR merges, the next one's base becomes
main(GitHub retargets it when the merged branch is deleted; otherwise change the base by hand) and its diff still shows only its own change.This PR description was generated by Claude Code using Claude Fable 5.2