Skip to content

Commit 91080e3

Browse files
committed
visual improvements to the Select
1 parent 912f551 commit 91080e3

File tree

1 file changed

+20
-18
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug_.projects.new

1 file changed

+20
-18
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug_.projects.new/route.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { conform, useForm } from "@conform-to/react";
22
import { parse } from "@conform-to/zod";
3-
import { FolderIcon } from "@heroicons/react/20/solid";
3+
import { FolderIcon, CommandLineIcon, PuzzlePieceIcon } from "@heroicons/react/20/solid";
44
import { json, type ActionFunction, type LoaderFunctionArgs } from "@remix-run/node";
55
import { Form, useActionData, useNavigation } from "@remix-run/react";
66
import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson";
@@ -319,25 +319,24 @@ export default function Page() {
319319
<div className="border-t border-charcoal-700" />
320320
<InputGroup>
321321
<Label>What are you working on?</Label>
322-
<input
323-
type="hidden"
324-
name="workingOn"
325-
value={JSON.stringify(selectedWorkingOn)}
326-
/>
322+
<input type="hidden" name="workingOn" value={JSON.stringify(selectedWorkingOn)} />
327323
<Select<string[], string>
328324
value={selectedWorkingOn}
329325
setValue={setSelectedWorkingOn}
330326
placeholder="Select options"
331327
variant="secondary/small"
332328
dropdownIcon
329+
icon={<CommandLineIcon className="mr-1 size-4 text-text-dimmed" />}
333330
items={shuffledWorkingOn}
334-
className="h-8"
331+
className="h-8 border-0 bg-charcoal-750 pl-3 text-sm text-text-dimmed transition ring-charcoal-600 hover:bg-charcoal-650 hover:text-text-dimmed hover:ring-1"
335332
text={(value) =>
336-
value.length === 0
337-
? undefined
338-
: value.length <= 2
339-
? value.join(", ")
340-
: `${value.slice(0, 2).join(", ")} +${value.length - 2} more`
333+
value.length === 0 ? undefined : (
334+
<span className="text-text-bright">
335+
{value.length <= 2
336+
? value.join(", ")
337+
: `${value.slice(0, 2).join(", ")} +${value.length - 2} more`}
338+
</span>
339+
)
341340
}
342341
>
343342
{(items) =>
@@ -392,14 +391,17 @@ export default function Page() {
392391
placeholder="Select options"
393392
variant="secondary/small"
394393
dropdownIcon
394+
icon={<PuzzlePieceIcon className="size-4 text-text-dimmed" />}
395395
items={[...goalOptions]}
396-
className="h-8"
396+
className="h-8 border-0 bg-charcoal-750 pl-3 text-sm text-text-dimmed transition ring-charcoal-600 hover:bg-charcoal-650 hover:text-text-dimmed hover:ring-1"
397397
text={(value) =>
398-
value.length === 0
399-
? undefined
400-
: value.length <= 2
401-
? value.join(", ")
402-
: `${value.slice(0, 2).join(", ")} +${value.length - 2} more`
398+
value.length === 0 ? undefined : (
399+
<span className="text-text-bright">
400+
{value.length <= 2
401+
? value.join(", ")
402+
: `${value.slice(0, 2).join(", ")} +${value.length - 2} more`}
403+
</span>
404+
)
403405
}
404406
>
405407
{(items) =>

0 commit comments

Comments
 (0)