implementation
Implement in your agent
# Implement Select in your agent ## Objective Implement Select for this verified behavior: A form control for choosing one or more values from predefined options without arbitrary text entry; a single-select commonly appears as a closed picker, while a multiple select may expose a list. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Select matches the need before writing code. ## Required behavior - The control exposes whether one or multiple values can be selected and updates every selected state consistently. - Arrow keys navigate according to the declared control model; focus and selection states are exposed consistently, including when selection follows focus. ## States to cover - Single-select specimen collapsed — Single-select specimen collapsed - Single-select specimen expanded — Single-select specimen expanded ## Accessibility - The primary control or named region for Select has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - The native control delegates focus and option navigation to the platform for its declared single or multiple presentation. - For a collapsed single-select, the platform picker closes using its standard commit or cancellation behavior; a list presentation does not imply a dismissible popup. - Tab focuses the select - Platform keys navigate the current single- or multiple-selection presentation - The platform selection command updates the value or selected values ## Non-goals - Users need to search a long list - Several options must remain visible for comparison ## Acceptance criteria - A visible label names the value or values being chosen - Only predefined values can be committed - The single or multiple selection mode is explicit - Required and error states are associated with the control
sha256:53485b41efd63406c6984d712fa8d93a4b4b7d76efb87db161b81193de355051