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: use text-sm for all inputs

Brad Barbinf2cfc757c736
diff --git a/apps/carbon/app/components/Form/SequenceOrCustomId.tsx b/apps/carbon/app/components/Form/SequenceOrCustomId.tsx
index 3fb1f4227a..22bbcc8ebc 100644
--- a/apps/carbon/app/components/Form/SequenceOrCustomId.tsx
+++ b/apps/carbon/app/components/Form/SequenceOrCustomId.tsx
@@ -50,7 +50,7 @@ const SequenceOrCustomId = forwardRef<
/>
) : (
<Button
- size="lg"
+ size="md"
variant="secondary"
className="flex-grow bg-muted text-muted-foreground justify-start pl-4 h-10 rounded-r-none"
>
diff --git a/packages/react/src/Command.tsx b/packages/react/src/Command.tsx
index 19a4508205..529a9123c9 100644
--- a/packages/react/src/Command.tsx
+++ b/packages/react/src/Command.tsx
@@ -184,8 +184,8 @@ const commandTriggerVariants = cva(
variants: {
size: {
lg: "h-12 px-4 py-3 rounded-lg text-base space-x-4",
- md: "h-10 px-3 py-2 rounded-md text-base space-x-3",
- sm: "h-8 px-3 py-2 rounded text-sm space-x-2",
+ md: "h-10 px-3 py-2 rounded-md text-sm space-x-3",
+ sm: "h-8 px-3 py-2 rounded text-xs space-x-2",
},
},
defaultVariants: {
@@ -200,8 +200,8 @@ export const multiSelectTriggerVariants = cva(
variants: {
size: {
lg: "text-base",
- md: "text-base",
- sm: "text-sm",
+ md: "text-sm",
+ sm: "text-xs",
},
hasSelections: {
true: "h-full",
diff --git a/packages/react/src/Date/components/DateSegment.tsx b/packages/react/src/Date/components/DateSegment.tsx
index eb54ad0cea..79d83f693f 100644
--- a/packages/react/src/Date/components/DateSegment.tsx
+++ b/packages/react/src/Date/components/DateSegment.tsx
@@ -28,7 +28,7 @@ export const DateSegment = ({
<div
{...segmentProps}
ref={ref}
- className="box-content tabular-nums text-right outline-none rounded-sm group focus:bg-primary focus:text-primary-foreground"
+ className="box-content text-sm tabular-nums text-right outline-none rounded-sm group focus:bg-primary focus:text-primary-foreground"
>
<span
aria-hidden="true"
diff --git a/packages/react/src/Input.tsx b/packages/react/src/Input.tsx
index 098d707d04..a4a3ec77a6 100644
--- a/packages/react/src/Input.tsx
+++ b/packages/react/src/Input.tsx
@@ -105,9 +105,9 @@ export const inputVariants = cva(
{
variants: {
size: {
- lg: "h-12 rounded-lg px-4 text-lg",
- md: "h-10 rounded-md px-4 text-base",
- sm: "h-8 rounded px-3 text-sm",
+ lg: "h-12 rounded-lg px-4 text-base",
+ md: "h-10 rounded-md px-4 text-sm",
+ sm: "h-8 rounded px-3 text-xs",
xs: "h-6 rounded px-2 text-xs",
},
isInputGroup: {
diff --git a/packages/react/src/Select.tsx b/packages/react/src/Select.tsx
index 6e6eeb6cb3..00f52de1ef 100644
--- a/packages/react/src/Select.tsx
+++ b/packages/react/src/Select.tsx
@@ -26,8 +26,8 @@ const selectTriggerVariants = cva(
variants: {
size: {
lg: "h-12 px-4 py-3 rounded-lg text-base space-x-4",
- md: "h-10 px-3 py-2 rounded-md text-base space-x-3",
- sm: "h-8 px-3 py-2 rounded text-sm space-x-2",
+ md: "h-10 px-3 py-2 rounded-md text-sm space-x-3",
+ sm: "h-8 px-3 py-2 rounded text-sm text-xs space-x-2",
},
},
defaultVariants: {
@@ -139,7 +139,10 @@ const SelectLabel = forwardRef<
>(({ className, ...props }, ref) => (
<SelectPrimitive.Label
ref={ref}
- className={cn("px-2 py-1.5 text-sm font-semibold", className)}
+ className={cn(
+ "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase",
+ className
+ )}
{...props}
/>
));