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.

style: badges and enumerables

Brad Barbinfbe54951fe60
diff --git a/apps/erp/app/components/Enumerable.tsx b/apps/erp/app/components/Enumerable.tsx
index 5e607e45aa..f91dd85cdf 100644
--- a/apps/erp/app/components/Enumerable.tsx
+++ b/apps/erp/app/components/Enumerable.tsx
@@ -15,7 +15,7 @@ const Enumerable = ({ value, color, ...props }: EnumerableProps) => {
const style = color ? getColor(color, mode) : getColorByValue(value, mode);
return (
- <Badge style={style} {...props}>
+ <Badge style={{ ...style, borderColor: `${style.color}33` }} {...props}>
{value}
</Badge>
);
diff --git a/packages/react/src/Badge.tsx b/packages/react/src/Badge.tsx
index e5fe464646..445bf7fe40 100644
--- a/packages/react/src/Badge.tsx
+++ b/packages/react/src/Badge.tsx
@@ -11,7 +11,7 @@ import { LuX } from "react-icons/lu";
import { cn } from "./utils/cn";
const badgeVariants = cva(
- "inline-flex items-center rounded-md px-2 min-h-[1.25rem] font-medium transition-colors border focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-bold text-[11px] truncate tracking-tight whitespace-nowrap",
+ "inline-flex items-center rounded-md px-2 min-h-[1.25rem] font-medium transition-colors border focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-bold text-[11px] uppercase truncate tracking-tight whitespace-nowrap",
{
variants: {
variant: {