Skip to content

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

fix(web): darker sidebar active item fill in light mode (#18558)

Trang Nguyenf510c9d2dd23
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
index 64f4210ac9..0db4a12210 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
@@ -45,7 +45,7 @@ export function EvaluatorGallerySidebar({
className={cn(
"font-regular h-8 justify-start px-3",
isActive
- ? "hover:bg-secondary"
+ ? "bg-sidebar-accent text-sidebar-accent-foreground hover:bg-sidebar-accent"
: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
)}
aria-current={isActive ? "page" : undefined}
diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css
index ce912871dc..04431830f9 100644
--- a/web/src/styles/globals.css
+++ b/web/src/styles/globals.css
@@ -497,7 +497,7 @@
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
- --sidebar-accent: 240 4.8% 95.9%; /* zinc-100 */
+ --sidebar-accent: 240 5.2% 93.5%; /* between zinc-100 and zinc-200 */
--sidebar-accent-foreground: 240 5.9% 10%;
--sidebar-border: 240 5.9% 90%; /* zinc-200 */
--sidebar-ring: 217.2 91.2% 59.8%;