Skip to content

Commit 4f73e5c

Browse files
committed
Open the combobox as soon as it's focused
1 parent c13a775 commit 4f73e5c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/app/conf/2025/schedule/_components/filters.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Combobox } from "@headlessui/react"
55
import { Tag } from "@/app/conf/_design-system/tag"
66
import { Button } from "@/app/conf/_design-system/button"
77

8-
import CloseIcon from "@/app/conf/2025/pixelarticons/close.svg?svgr"
9-
import CaretDownIcon from "@/app/conf/2025/pixelarticons/caret-down.svg?svgr"
8+
import CloseIcon from "@/app/conf/_design-system/pixelarticons/close.svg?svgr"
9+
import CaretDownIcon from "@/app/conf/_design-system/pixelarticons/caret-down.svg?svgr"
1010
import { eventsColors } from "../../utils"
1111
type FiltersProps = {
1212
categories: { name: string; options: string[] }[]
@@ -92,10 +92,10 @@ function FiltersCombobox({
9292
)
9393

9494
return (
95-
<Combobox multiple nullable value={value} onChange={onChange}>
95+
<Combobox immediate multiple value={value} onChange={onChange}>
9696
<div className={clsx("flex flex-col", className)}>
9797
{label && (
98-
<Combobox.Label className="typography-menu mb-1 block font-mono font-medium uppercase text-neu-900">
98+
<Combobox.Label className="mb-1 block font-mono font-medium uppercase text-neu-900 typography-menu">
9999
{label}
100100
</Combobox.Label>
101101
)}
@@ -104,7 +104,7 @@ function FiltersCombobox({
104104
value={query}
105105
onChange={e => setQuery(e.target.value)}
106106
className={clsx(
107-
"typography-body-sm bg-transparent leading-none text-neu-800 !outline-offset-0 [text-box:trim-both_cap_alphabetic] max-lg:typography-body-md placeholder:text-neu-600 focus:outline-none",
107+
"bg-transparent leading-none text-neu-800 !outline-offset-0 typography-body-sm [text-box:trim-both_cap_alphabetic] placeholder:text-neu-600 focus:outline-none max-lg:typography-body-md",
108108
)}
109109
placeholder={placeholder}
110110
autoComplete="true"
@@ -206,7 +206,7 @@ function FilterComboboxOption({
206206
return (
207207
<div
208208
className={clsx(
209-
"typography-body-sm relative flex cursor-default select-none items-center p-1 font-sans",
209+
"relative flex cursor-default select-none items-center p-1 font-sans typography-body-sm",
210210
active && "bg-neu-100 dark:bg-neu-50",
211211
)}
212212
>

src/app/conf/2025/schedule/_components/schedule-session-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SchedSpeaker } from "@/app/conf/2023/types"
44
import { Anchor } from "@/app/conf/_design-system/anchor"
55
import { Tag } from "@/app/conf/_design-system/tag"
66

7-
import { PinIcon } from "../../pixelarticons/pin-icon"
7+
import { PinIcon } from "@/app/conf/_design-system/pixelarticons/pin-icon"
88

99
import { type ScheduleSession } from "./session-list"
1010
import { getEventTitle } from "../../utils"
@@ -85,7 +85,7 @@ export function ScheduleSessionCard({
8585
))}
8686
</span>
8787
)}
88-
<span className="typography-body-xs mt-2 flex items-center gap-0.5">
88+
<span className="mt-2 flex items-center gap-0.5 typography-body-xs">
8989
<PinIcon className="size-4 text-pri-base" />
9090
{session.venue}
9191
</span>

0 commit comments

Comments
 (0)