Skip to content

Commit 334f740

Browse files
Fix region-select component issues:
- Remove bg-gray-50 from first item - Install Playwright for Storybook tests Co-authored-by: Jake Ruesink <jake@lambdacurry.dev>
1 parent 145293c commit 334f740

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ export function RegionSelect({
127127
{filtered.length === 0 && <li className="px-3 py-2 text-sm text-gray-500">No results.</li>}
128128
{filtered.map((option) => {
129129
const isSelected = option.value === value;
130-
const isEnterCandidate = enterCandidate?.value === option.value && !isSelected;
131130
return (
132131
<li key={option.value} className="list-none">
133132
<button
@@ -142,7 +141,6 @@ export function RegionSelect({
142141
'w-full text-left cursor-pointer select-none py-3 px-3 transition-colors duration-150 flex items-center gap-2 rounded',
143142
'text-gray-900',
144143
isSelected ? 'bg-gray-100' : 'hover:bg-gray-100',
145-
!isSelected && isEnterCandidate && 'bg-gray-50',
146144
itemClassName
147145
)}
148146
>

0 commit comments

Comments
 (0)