implementation
Implement in your agent
# Implement Radio group in your agent ## Objective Implement Radio group for this verified behavior: A named set of mutually exclusive choices where selecting one option clears the previous selection. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Radio group matches the need before writing code. ## Required behavior - Selecting one item automatically clears the previous item in the named group. - Arrow keys move through related items according to their visual orientation. ## States to cover - Standard delivery selected — Standard delivery selected - Express delivery selected — Express delivery selected ## Accessibility - The primary control or named region for Radio group has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - The native group behaves as one tab stop once a value is selected, with visible focus on the active radio. - Not applicable: selection remains until another radio is chosen or the form resets. - Tab enters the selected radio or first option - Arrow keys move and select - Shift+Tab leaves the group ## Non-goals - More than one answer is allowed - The choice is better represented as an on or off setting ## Acceptance criteria - A visible legend names the whole choice - Exactly one option can be selected - Arrow-key behavior matches visual order - Required and error states apply to the group
sha256:87d3a9c0fc1437f6165813db86be877759bd6c065859985a27c9d9be68e16dc0