Skip to content

Commit a0b75a1

Browse files
committed
fix(styles): update input and select base classes to use consistent background styling for improved visual coherence
1 parent 93b70a9 commit a0b75a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/htpy_uikit/components/_styles.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
)
7878

7979
BTN_VARIANT_OUTLINE_CLASSES = (
80-
"border bg-background shadow-xs dark:bg-input/30 dark:border-input "
80+
"border bg-input/40 shadow-xs dark:bg-input/30 dark:border-input "
8181
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50"
8282
)
8383

@@ -91,7 +91,7 @@
9191

9292
# Base field trigger (for select, combobox triggers - uses button outline variant)
9393
FIELD_TRIGGER_BASE_CLASSES = (
94-
"border bg-background shadow-xs dark:bg-input/30 dark:border-input "
94+
"border bg-input/40 shadow-xs dark:bg-input/30 dark:border-input "
9595
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 "
9696
f"{INTERACTIVE_STATE_CLASSES}"
9797
)
@@ -101,15 +101,15 @@
101101
"appearance-none file:text-foreground placeholder:text-muted-foreground "
102102
"selection:bg-primary selection:text-primary-foreground "
103103
"dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border "
104-
"bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] "
104+
"bg-input/40 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] "
105105
f"{INTERACTIVE_STATE_CLASSES} md:text-sm "
106106
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium"
107107
)
108108

109109
# Native select specific (includes chevron icon background)
110110
SELECT_NATIVE_BASE_CLASSES = (
111111
"appearance-none border-input dark:bg-input/30 dark:hover:bg-input/50 "
112-
"flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent "
112+
"flex w-fit items-center justify-between gap-2 rounded-md border bg-input/40 "
113113
"pl-3 pr-9 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] "
114114
f"{INTERACTIVE_STATE_CLASSES} h-9 "
115115
"bg-(image:--chevron-down-icon-50) bg-no-repeat bg-position-[center_right_0.75rem] bg-size-[1rem]"

0 commit comments

Comments
 (0)