Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(erp): keep the selected Custom date toggle readable on hover

naveenkash2d7559b911e0
diff --git a/apps/erp/app/components/DateSelect.tsx b/apps/erp/app/components/DateSelect.tsx
index c391c40c24..e2baa1a77f 100644
--- a/apps/erp/app/components/DateSelect.tsx
+++ b/apps/erp/app/components/DateSelect.tsx
@@ -122,7 +122,7 @@ const DateSelect = forwardRef<HTMLDivElement, DateSelectProps>(
className={cn(
"h-7 w-7 rounded-full p-0",
"bg-transparent text-muted-foreground",
- "hover:bg-active hover:text-active-foreground",
+ "hover:bg-active hover:text-active-foreground hover:data-[state=on]:bg-active",
"data-[state=on]:bg-active data-[state=on]:text-active-foreground data-[state=on]:shadow-sm",
"transition-all duration-200"
)}