Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): make the warning toast opaque (#18123)

Der Gerät775611086c05
diff --git a/web/src/features/notifications/showErrorToast.tsx b/web/src/features/notifications/showErrorToast.tsx
index 1db1bb2536..e243d9d570 100644
--- a/web/src/features/notifications/showErrorToast.tsx
+++ b/web/src/features/notifications/showErrorToast.tsx
@@ -6,9 +6,14 @@ const toastErrorStyleProps = {
backgroundColor: "hsl(var(--destructive))",
};
+// `--light-yellow` is a tint with baked-in alpha, meant to sit on top of a
+// solid surface. A toast floats over arbitrary page content, so the tint is
+// layered over an opaque background here rather than used as the background
+// itself — otherwise the page shows through the toast.
const toastWarningStyleProps = {
- border: "1px solid var(--light-yellow)",
- backgroundColor: "var(--light-yellow)",
+ border: "1px solid var(--dark-yellow)",
+ backgroundColor: "hsl(var(--background))",
+ backgroundImage: "linear-gradient(var(--light-yellow), var(--light-yellow))",
};
export const showErrorToast = (