Skip to content

fix(web): reserve the accent color for selection and focus - #1329

Merged
benvinegar merged 1 commit into
mainfrom
claude/web-ui-01-accent
Nov 17, 2026
Merged

benvinegar merged 1 commit into
mainfrom
claude/web-ui-01-accent

Conversation

@benvinegar

@benvinegar benvinegar commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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.

  • A pressed toggle and a checked segment use a neutral "on" state from existing tokens: --hunk-panel-alt fill, --hunk-border edge, --hunk-text label, and a 2px inset bar so on and off differ by more than color.
  • The active side-panel tab underline is --hunk-text.
  • Resting note cards use --hunk-border; the author label is --hunk-text at weight 600.
  • The minimap viewport is a --hunk-muted outline.

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

  • New e2e case in 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, and solarized-light with 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.

# PR Change Base
1 modem-dev/hunk#1329 ← this PR Accent only for selection and focus main
2 modem-dev/hunk#1330 One-row toolbar, icon controls, View menu #1329
3 modem-dev/hunk#1331 Digit grouping, palette sections, one gap row, icons #1330
4 modem-dev/hunk#1332 Quieter minimap #1331
5 modem-dev/hunk#1333 Note threads with authors and icon actions #1332
6 modem-dev/hunk#1334 File headers: state chips, collapse, copy path #1333
7 modem-dev/hunk#1335 Sidebar review state #1334
8 modem-dev/hunk#1336 Summary strip; side panel starts closed #1335
9 modem-dev/hunk#1337 Review bar: progress, next unviewed, key hints, copy notes #1336

Merge 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

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>
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

This PR tones down browser review controls and note cards so the accent stands out around selection and focus.

  • Pressed controls look on without using the accent.
  • Note cards and author names use regular theme colors.
  • The active side-panel tab uses a text-colored underline.
  • The minimap viewport uses muted colors.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant