Skip to content

Commit 26d9178

Browse files
committed
visual improvements to the single select
1 parent cec3328 commit 26d9178

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/webapp/app/routes/confirm-basic-details.tsx

Lines changed: 5 additions & 3 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 { ArrowRightIcon, EnvelopeIcon, UserIcon } from "@heroicons/react/20/solid";
3+
import { ArrowRightIcon, EnvelopeIcon, UserGroupIcon, UserIcon } from "@heroicons/react/20/solid";
44
import { HandRaisedIcon } from "@heroicons/react/24/solid";
55
import { RadioGroup } from "@radix-ui/react-radio-group";
66
import { json, type ActionFunction } from "@remix-run/node";
@@ -351,8 +351,10 @@ export default function Page() {
351351
placeholder="Select an option"
352352
variant="secondary/small"
353353
dropdownIcon
354+
icon={<UserGroupIcon className="mr-1 size-4.5 text-text-dimmed" />}
354355
items={shuffledRoles}
355-
className="h-8 rounded border-charcoal-800 bg-charcoal-750 px-3 text-sm hover:border-charcoal-600 hover:bg-charcoal-650"
356+
className="h-8 min-w-0 border-0 bg-charcoal-750 pl-2 text-sm text-text-dimmed ring-charcoal-600 transition hover:bg-charcoal-650 hover:text-text-dimmed hover:ring-1"
357+
text={(v) => (v ? <span className="text-text-bright">{v}</span> : undefined)}
356358
>
357359
{(items) =>
358360
items.map((item) => (
@@ -363,7 +365,7 @@ export default function Page() {
363365
}
364366
</Select>
365367
{selectedRole === "Other" && (
366-
<div className="mt-2">
368+
<div>
367369
<Input
368370
name="roleOther"
369371
type="text"

0 commit comments

Comments
 (0)