Skip to content

Commit 39f9ca6

Browse files
committed
fix(components): update input, select, and textarea components to use consistent background styling for improved visual coherence
1 parent c8dda74 commit 39f9ca6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/htpy_uikit/components/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def input_component(
5151
"""
5252

5353
base_classes = (
54-
"appearance-none file:text-foreground placeholder:text-muted-foreground "
54+
"bg-input/30 appearance-none file:text-foreground placeholder:text-muted-foreground "
5555
"selection:bg-primary selection:text-primary-foreground border-input "
5656
"flex h-9 w-full min-w-0 rounded-md border bg-card "
5757
"px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none "

src/htpy_uikit/components/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def native_select(
5858
base_classes = (
5959
"appearance-none border-input focus-visible:border-ring focus-visible:ring-ring/50 "
6060
"aria-invalid:ring-destructive/20 aria-invalid:border-destructive "
61-
"flex w-fit items-center justify-between gap-2 rounded-md border bg-card hover:bg-accent/10 hover:text-foreground "
61+
"flex w-fit items-center justify-between gap-2 rounded-md border bg-input/30 hover:bg-input/50 hover:text-foreground "
6262
"pl-3 pr-9 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] "
6363
"disabled:cursor-not-allowed disabled:opacity-50 h-9 bg-(image:--chevron-down-icon-50) bg-no-repeat bg-position-[center_right_0.75rem] bg-size-[1rem]"
6464
)

src/htpy_uikit/components/textarea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def textarea_component(
4949
base_classes = (
5050
"appearance-none placeholder:text-muted-foreground selection:bg-primary "
5151
"selection:text-primary-foreground border-input flex "
52-
"w-full min-w-0 rounded-md border bg-card px-3 py-2 text-base "
52+
"w-full min-w-0 rounded-md border bg-input/30 px-3 py-2 text-base "
5353
"shadow-xs transition-[color,box-shadow] outline-none "
5454
"disabled:cursor-not-allowed "
5555
"disabled:opacity-50 md:text-sm focus-visible:border-ring "

0 commit comments

Comments
 (0)