You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FOCUS (FOR MULTISELECT)
When a multiselect listbox receives focus: either first option or first of selected options in the list (sorted list)
(Keyboard Interaction - https://www.w3.org/WAI/ARIA/apg/patterns/listbox/)
Description
A listbox presents a list of options and allows a user to select one of them.
Design
This component does not have a design, it must be configurable via CSS custom properties.
Requirements
Shadow DOM
This component does not make use of shadow DOM.
Styling options
--post-listbox-item-gap
: Gap between listbox options--post-listbox-heading-gap
: Gap between heading (if shown) and the listboxThese options have not default definition but the can be set on the host by a user.
To achieve this, the following styling can be used:
Props
title-hidden
: the internal title container gets the classvisually-hidden
Variants
<post-list title-hidden>
<post-list style="--post-listbox-item-gap: 1rem; --post-listbox-heading-gap: 0.5rem">
Accessibility
https://www.w3.org/WAI/ARIA/apg/patterns/listbox/
aria-labelledby
Tasks development
💻 Development
The text was updated successfully, but these errors were encountered: