Skip to content

Make the PR badge tooltip status line readable - #6682

Merged
ymichael merged 1 commit into
mainfrom
bb/please-investigate-and-fix-https-github-com-get-thr_6qkrds9shu
Oct 30, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/please-investigate-and-fix-https-github-com-get-thr_6qkrds9shu

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The sidebar PR badge tooltip (plugins/github-pr-status/ui/PullRequestRowMetadata.tsx) styled its status line with text-muted-foreground. That token is a text tone for the --canvas surface, but TooltipContent draws an inverted bg-primary fill, so the muted tone landed next to the fill: 1.15:1 in the Default dark theme and 1.94:1 in light. It was the only tooltip in the repo putting muted/subtle text on the tooltip fill.

What changed

  • PullRequestRowMetadata.tsx: the status line uses text-primary-foreground/75, a tone derived from the tooltip's own foreground, so it stays a step below the title while following any theme's --primary-foreground.
  • Plugin-local fix (the issue's first option). I did not override --muted-foreground in shared TooltipContent, since no other tooltip needs it.

How you verified

  • pnpm exec turbo run prepare:bundled typecheck test --filter=bb-plugin-bb--github-pr-status: pass, 181/181 tests; the bundled CSS contains the scoped text-primary-foreground/75 rule.
  • pnpm start:worktree with a fresh data dir, built once with the old class and once with the fix. Projects and threads point at shallow clones of two open-PR branches (Stop provider failures from retiring recurring automations #6677 checks failing, Show nightly builds the newest release's changelog #6679 checks running), with threadRowMetadata and showRowMetadata on. In Chromium I hovered the real sidebar badge and read computed styles plus WCAG 2 contrast against the tooltip fill:
Mode Line Before After
Dark title 9.98:1 9.98:1
Dark status 1.15:1 5.59:1
Light title 15.13:1 15.13:1
Light status 1.94:1 9.10:1
  • Source CLI against that server: bb pull-request show (text and --json) for both environments, bb thread list/show, bb settings show, bb thread-list prefs get, bb host list all behave as before. The composer's PR segment and the sidebar badge render unchanged.
  • Not run: desktop (Electron) app and custom themes.

Fixes #6674

AGENT GENERATED

🤖 Generated with Claude Code

The status line used text-muted-foreground, a canvas text tone, on the
tooltip's inverted primary fill (1.15:1 dark, 1.94:1 light). Derive it
from the tooltip foreground instead: 5.54:1 dark, 9.08:1 light.

Fixes #6674

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 84e2129 into main Oct 30, 2026
48 checks passed
@ymichael
ymichael deleted the bb/please-investigate-and-fix-https-github-com-get-thr_6qkrds9shu branch October 30, 2026 18:13
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.

Sidebar PR badge tooltip: the status line has 1.15:1 contrast in the Default dark theme

1 participant