Skip to content

Commit 912f551

Browse files
committed
small visual improvements
1 parent 03d9aaf commit 912f551

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

apps/webapp/app/components/onboarding/TechnologyPicker.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import * as Ariakit from "@ariakit/react";
2-
import { XMarkIcon, PlusIcon, CubeIcon, MagnifyingGlassIcon } from "@heroicons/react/20/solid";
2+
import {
3+
XMarkIcon,
4+
PlusIcon,
5+
CubeIcon,
6+
MagnifyingGlassIcon,
7+
ChevronDownIcon,
8+
} from "@heroicons/react/20/solid";
39
import { useCallback, useMemo, useRef, useState } from "react";
410
import { cn } from "~/utils/cn";
511
import { matchSorter } from "match-sorter";
@@ -206,11 +212,14 @@ export function TechnologyPicker({
206212
virtualFocus
207213
>
208214
<Ariakit.Select
209-
className="flex h-8 w-full items-center rounded bg-charcoal-750 pl-2 pr-3 text-sm text-text-dimmed ring-charcoal-600 transition focus-custom hover:bg-charcoal-650 hover:ring-1"
215+
className="group flex h-8 w-full items-center rounded bg-charcoal-750 pl-2 pr-2.5 text-sm text-text-dimmed ring-charcoal-600 transition focus-custom hover:bg-charcoal-650 hover:ring-1"
210216
onClick={() => setOpen(true)}
211217
>
212-
<CubeIcon className="mr-1.5 size-4 flex-none text-text-dimmed" />
213-
<span>Select your technologies…</span>
218+
<div className="flex grow items-center">
219+
<CubeIcon className="mr-1.5 size-4 flex-none text-text-dimmed" />
220+
<span>Select your technologies…</span>
221+
</div>
222+
<ChevronDownIcon className="size-4 flex-none text-text-dimmed transition group-hover:text-text-bright" />
214223
</Ariakit.Select>
215224

216225
<Ariakit.SelectPopover
@@ -281,15 +290,15 @@ export function TechnologyPicker({
281290

282291
<div className="sticky bottom-0 border-t border-charcoal-700 bg-background-bright px-1 py-1">
283292
{showOtherInput ? (
284-
<div className="flex h-8 w-full items-center rounded-sm bg-tertiary px-2 ring-1 ring-charcoal-650">
293+
<div className="flex h-8 w-full items-center rounded-sm bg-tertiary pl-0 pr-2 ring-1 ring-charcoal-650">
285294
<input
286295
ref={otherInputRef}
287296
type="text"
288297
value={otherInputValue}
289298
onChange={(e) => setOtherInputValue(e.target.value)}
290299
onKeyDown={handleOtherKeyDown}
291300
placeholder="Type and press Enter to add"
292-
className="flex-1 border-none bg-transparent pl-0.5 text-2sm text-text-bright shadow-none outline-none ring-0 placeholder:text-text-dimmed focus:border-none focus:outline-none focus:ring-0"
301+
className="pl-0.5can flex-1 border-none bg-transparent text-2sm text-text-bright shadow-none outline-none ring-0 placeholder:text-text-dimmed focus:border-none focus:outline-none focus:ring-0"
293302
autoFocus
294303
/>
295304
<ShortcutKey

0 commit comments

Comments
 (0)