Skip to content

Commit 7bf146e

Browse files
Fix region-select styling issues:
- Lighten selected gray background - Darken hover gray background - Remove black border around dropdown - Make search input full width without border Co-authored-by: Jake Ruesink <jake@lambdacurry.dev>
1 parent 98c7b1c commit 7bf146e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/components/src/ui/region-select.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ export function RegionSelect({
7676
<PopoverContent
7777
ref={popoverRef}
7878
className={cn(
79-
'z-50 p-0',
79+
'z-50 p-0 shadow-md border-0',
8080
contentClassName
8181
)}
8282
style={{ width: menuWidth ? `${menuWidth}px` : undefined }}
8383
>
84-
<div className="bg-white p-1.5 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm">
84+
<div className="bg-white p-1.5 rounded-md focus:outline-none sm:text-sm">
8585
<div className="px-1.5 pb-1.5">
8686
<input
8787
type="text"
@@ -109,7 +109,7 @@ export function RegionSelect({
109109
triggerRef.current?.focus();
110110
}
111111
}}
112-
className="w-full h-9 rounded-md bg-white px-2 text-sm leading-none focus:ring-0 focus:outline-none border border-input"
112+
className="w-full h-9 rounded-md bg-white px-2 text-sm leading-none focus:ring-0 focus:outline-none border-0"
113113
/>
114114
</div>
115115
<ul className="max-h-[200px] overflow-y-auto rounded-md">
@@ -128,8 +128,8 @@ export function RegionSelect({
128128
}}
129129
className={cn(
130130
'w-full text-left cursor-pointer select-none py-3 px-3 transition-colors duration-150 flex items-center gap-2 rounded',
131-
'text-gray-900 hover:bg-gray-50',
132-
isSelected && 'bg-gray-200',
131+
'text-gray-900 hover:bg-gray-100',
132+
isSelected && 'bg-gray-100',
133133
!isSelected && isEnterCandidate && 'bg-gray-50',
134134
itemClassName
135135
)}

0 commit comments

Comments
 (0)