Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep provider badge legible in dark themes #7968

MergedRakshithBhat03(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/7968/headmerged by maria-rcks View on GitHub

the codex provider badge used a translucent muted background, so the provider icon showed through its initials in dark mode.

switch the neutral badge from bg-muted to the opaque bg-card. accent-colored badges are unchanged.

codex badge dark mode before and after

tests: targeted lint, formatting check, and web typecheck.

built by gpt-5.6 sol in t3 code through the codex harness.

request provenance

  • requested by: @maria-rcks

Note

Low Risk One-line CSS class swap on a decorative badge; no logic, auth, or data-handling changes.

Overview Neutral provider-instance badges now use bg-card instead of bg-muted so initials stay opaque over the icon in dark themes. Accent-colored badges are unchanged.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 09499e93cddee787eb546d825a416d518e33c6a1. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix ProviderInstanceIcon badge background for dark theme legibility

Changes the fallback badge background class from bg-muted to bg-card in ProviderInstanceIcon.tsx when no accentColor is provided. The text class text-muted-foreground is unchanged.

Macroscope summarized 09499e9.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: ca7e4e0d-367b-4c66-86b1-096114f51be5

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      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.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This is a narrowly scoped visual change to neutral provider badge backgrounds. However, imported themes may define the card surface with transparency, potentially allowing the provider glyph to remain visible through the badge and leaving the reported dark-theme legibility issue unresolved.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 09499e93cddee787eb546d825a416d518e33c6a1. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -65,7 +65,7 @@
      6565 "pointer-events-none absolute right-0 bottom-0 z-10 flex h-3.5 min-w-3.5 items-center justify-center rounded-full border px-0.5 text-[8px] font-semibold leading-none shadow-sm",
      6666 props.accentColor
      6767 ? "bg-[var(--provider-accent)] text-white"
      68- : "bg-muted text-muted-foreground",
      68+ : "bg-card text-muted-foreground",
      6969 props.badgeClassName,
      7070 )}
      7171 style={{ borderColor: indicatorBackground }}
      cursor[bot](GitHub profile, opens in a new tab)commented

      Opaque badge surface removed

      Medium Severity

      This incremental change drops NEUTRAL_BADGE_SURFACE and only keeps bg-card for neutral badges. Imported themes can set --card / --app-theme-surface with alpha, so the driver glyph can show through the initials again—the failure mode this PR claimed to fix with stacked muted/card/background/Canvas layers.

      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 09499e93cddee787eb546d825a416d518e33c6a1. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. maria-rcks merged thisa9cd94e

    6. maria-rcks closed this

Sign in to join this conversation.