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

Showing 1 changed file with 1 addition and 1 deletion.

x
0 of 1 viewed, 1 left
1 addition and 1 deletionapps/web/src/components/chat/ProviderInstanceIcon.tsxModified
View file
@@ -65,7 +65,7 @@
"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",
props.accentColor
? "bg-[var(--provider-accent)] text-white"
- : "bg-muted text-muted-foreground",
+ : "bg-card text-muted-foreground",
props.badgeClassName,
)}
style={{ borderColor: indicatorBackground }}
Thread on line 71
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).