Skip to content

feat: add Listbox component for single-select value pickers - #25

Open
RobertJoonas wants to merge 1 commit into
plausible:mainfrom
RobertJoonas:listbox
Open

feat: add Listbox component for single-select value pickers#25
RobertJoonas wants to merge 1 commit into
plausible:mainfrom
RobertJoonas:listbox

Conversation

@RobertJoonas

Copy link
Copy Markdown

Dropdown's menu semantics (role="menu"/"menuitem") don't fit picking a value for a form - that's an ARIA listbox pattern instead. Listbox renders a hidden form field and instantly updates the trigger's label on selection, ahead of any phx-change round-trip, while keeping the same Floating UI positioning and keyboard navigation as Dropdown.

Also adds a demo docs page with live examples, Wallaby coverage, and an Introduction page entry.

Dropdown's menu semantics (role="menu"/"menuitem") don't fit picking a
value for a form - that's an ARIA listbox pattern instead. Listbox
renders a hidden form field and instantly updates the trigger's label
on selection, ahead of any phx-change round-trip, while keeping the
same Floating UI positioning and keyboard navigation as Dropdown.

Also adds a demo docs page with live examples, Wallaby coverage, and
an Introduction page entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant