fix(web): update pills use readable theme foregrounds (#5938)

This commit is contained in:
Chris Deeming authored and GitHub committed 2026-08-09 23:26:45 -04:00
1 parent f0e2975180
commit 3d74474f6c
4 files changed
+5 -5

No files matched your search

@@ -13,7 +13,7 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
const PROVIDER_UPDATE_PILL_STYLES = {
loading:
"bg-update-surface text-update group-has-[button.provider-update-main:hover]/provider-update:bg-update/22",
"bg-update-surface text-update-foreground group-has-[button.provider-update-main:hover]/provider-update:bg-update/22",
success:
"bg-success/12 text-success group-has-[button.provider-update-main:hover]/provider-update:bg-success/18",
warning:
@@ -159,7 +159,7 @@ export function SidebarUpdatePill() {
)}
{visible && (
<div
className={`group/update relative flex h-7 w-full items-center rounded-lg bg-update-surface text-xs font-medium text-update ${
className={`group/update relative flex h-7 w-full items-center rounded-lg bg-update-surface text-xs font-medium text-update-foreground ${
disabled ? " cursor-not-allowed opacity-60" : ""
}`}
>
@@ -224,7 +224,7 @@ export function SidebarUpdatePill() {
<button
type="button"
aria-label="Dismiss update"
className="mr-1 inline-flex size-5 items-center justify-center rounded-md text-update/60 transition-colors hover:text-update"
className="mr-1 inline-flex size-5 items-center justify-center rounded-md text-update-foreground transition-colors"
onClick={() => setDismissed(true)}
>
<XIcon className="size-3.5" />
+1 -1
View File
@@ -975,7 +975,7 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
--warning-foreground: var(--color-amber-400);
--warning-surface: color-mix(in srgb, var(--warning) 16%, transparent);
--update: var(--primary);
--update-foreground: var(--primary);
--update-foreground: var(--color-blue-400);
--update-surface: color-mix(in srgb, var(--update) 18%, transparent);
--sidebar: var(--card);
--sidebar-foreground: var(--foreground);
+1 -1
View File
@@ -566,7 +566,7 @@ const T3_CODE_DARK_THEME_COLORS: ThemeColors = {
warningForeground: "#ffb900",
warningSurface: "#312108",
update: "#366ffb",
updateForeground: "#366ffb",
updateForeground: "#51a2ff",
updateSurface: "#121c35",
accentSurface: "#141414",
accentSurfaceForeground: "#f5f5f5",