|
1 | 1 | 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"; |
3 | 9 | import { useCallback, useMemo, useRef, useState } from "react"; |
4 | 10 | import { cn } from "~/utils/cn"; |
5 | 11 | import { matchSorter } from "match-sorter"; |
@@ -206,11 +212,14 @@ export function TechnologyPicker({ |
206 | 212 | virtualFocus |
207 | 213 | > |
208 | 214 | <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" |
210 | 216 | onClick={() => setOpen(true)} |
211 | 217 | > |
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" /> |
214 | 223 | </Ariakit.Select> |
215 | 224 |
|
216 | 225 | <Ariakit.SelectPopover |
@@ -281,15 +290,15 @@ export function TechnologyPicker({ |
281 | 290 |
|
282 | 291 | <div className="sticky bottom-0 border-t border-charcoal-700 bg-background-bright px-1 py-1"> |
283 | 292 | {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"> |
285 | 294 | <input |
286 | 295 | ref={otherInputRef} |
287 | 296 | type="text" |
288 | 297 | value={otherInputValue} |
289 | 298 | onChange={(e) => setOtherInputValue(e.target.value)} |
290 | 299 | onKeyDown={handleOtherKeyDown} |
291 | 300 | 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" |
293 | 302 | autoFocus |
294 | 303 | /> |
295 | 304 | <ShortcutKey |
|
0 commit comments