From 6df102fbde5433b0b9d2480e905333cb89b53162 Mon Sep 17 00:00:00 2001 From: supakornnetsuwan Date: Mon, 20 Oct 2025 18:05:13 +0700 Subject: [PATCH 1/2] fix: `input`, `input-group` background-color, `button` ghost variant style. --- .../app/playground/shadcn/input-section.tsx | 24 +++++++++---------- .../react/v2/components/primitives/button.tsx | 2 +- .../v2/components/primitives/input-group.tsx | 2 +- .../react/v2/components/primitives/input.tsx | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/ui-playground/src/app/playground/shadcn/input-section.tsx b/examples/ui-playground/src/app/playground/shadcn/input-section.tsx index bdbbc016..564768f5 100644 --- a/examples/ui-playground/src/app/playground/shadcn/input-section.tsx +++ b/examples/ui-playground/src/app/playground/shadcn/input-section.tsx @@ -375,7 +375,7 @@ export function InputSection() { A simple input field with placeholder text. -
+
@@ -384,7 +384,7 @@ export function InputSection() { Different HTML input types with appropriate validation and keyboard behaviors. -
+
@@ -393,7 +393,7 @@ export function InputSection() { Inputs can be in different states: default, disabled, or invalid. -
+
@@ -402,7 +402,7 @@ export function InputSection() { A controlled input where the value is managed by React state. -
+
@@ -411,7 +411,7 @@ export function InputSection() { Inputs paired with labels and helper text for better accessibility. -
+
@@ -420,7 +420,7 @@ export function InputSection() { File input for uploading single or multiple files. -
+
@@ -429,7 +429,7 @@ export function InputSection() { Input groups with icons or text at the start (left side) of the input field. -
+
@@ -438,7 +438,7 @@ export function InputSection() { Input groups with icons or text at the end (right side) of the input field. -
+
@@ -448,7 +448,7 @@ export function InputSection() { Input groups with interactive buttons for actions like clearing, toggling visibility, or submitting. -
+
@@ -457,7 +457,7 @@ export function InputSection() { Input groups with addons on both sides for complex input scenarios. -
+
@@ -466,7 +466,7 @@ export function InputSection() { Input groups with addons positioned above (block-start) or below (block-end) the input. -
+
@@ -475,7 +475,7 @@ export function InputSection() { Input groups in different states: default, disabled, and invalid. -
+
diff --git a/packages/react/v2/components/primitives/button.tsx b/packages/react/v2/components/primitives/button.tsx index 412acfa6..9b4904dc 100644 --- a/packages/react/v2/components/primitives/button.tsx +++ b/packages/react/v2/components/primitives/button.tsx @@ -28,7 +28,7 @@ const buttonVariants = cva( outline: ' border border-border-button-outline text-text-secondary bg-surface-button-outline shadow-xs hover:bg-surface-button-outline-hover active:bg-surface-button-outline hover:border-border-button-outline-hover disabled:bg-surface-button-outline-disabled disabled:text-text-disabled disabled:border disabled:border-border-button-outline-disabled dark:bg-input/30 dark:border-input dark:hover:bg-input/50', ghost: - ' bg-surface-button-ghost hover:bg-surface-button-ghost-hover active:bg-surface-button-ghost text-text-secondary hover:text-accent-foreground dark:hover:bg-accent/50', + 'bg-transparent text-text-secondary hover:text-accent-foreground dark:hover:bg-accent/50', destructive: 'bg-destructive text-white hover:bg-destructive/90 active:bg-destructive focus-visible:ring-destructive dark:focus-visible:ring-destructive/40 dark:bg-destructive/60', }, diff --git a/packages/react/v2/components/primitives/input-group.tsx b/packages/react/v2/components/primitives/input-group.tsx index 37a2abf3..76976698 100644 --- a/packages/react/v2/components/primitives/input-group.tsx +++ b/packages/react/v2/components/primitives/input-group.tsx @@ -21,7 +21,7 @@ function InputGroup({ data-pending={isPending} role="group" className={cn( - 'group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none', + 'bg-background group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none', 'h-18 min-w-0 has-[>textarea]:h-auto', // Variants based on alignment. diff --git a/packages/react/v2/components/primitives/input.tsx b/packages/react/v2/components/primitives/input.tsx index 433e456b..e3c28b21 100644 --- a/packages/react/v2/components/primitives/input.tsx +++ b/packages/react/v2/components/primitives/input.tsx @@ -11,7 +11,7 @@ function Input({ Date: Mon, 20 Oct 2025 18:11:27 +0700 Subject: [PATCH 2/2] Create hungry-fans-boil.md --- .changeset/hungry-fans-boil.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/hungry-fans-boil.md diff --git a/.changeset/hungry-fans-boil.md b/.changeset/hungry-fans-boil.md new file mode 100644 index 00000000..c89731e5 --- /dev/null +++ b/.changeset/hungry-fans-boil.md @@ -0,0 +1,6 @@ +--- +"@example/ui-playground": patch +"@genseki/react": patch +--- + +fix: `input`, `input-group` background-color and`button` ghost variant