implementation
Implement in your agent
# Implement Popover in your agent ## Objective Implement Popover for this verified behavior: A small contextual surface opened deliberately to show supporting content or controls without making the whole page modal. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Popover matches the need before writing code. ## Required behavior - Activating the trigger opens the surface, and activating it again can close it. - A pointer press outside the noncritical surface dismisses it without committing an action. - Escape closes the temporary surface and returns focus to a sensible control. ## States to cover - Popover closed — Popover closed - Popover open — Popover open ## Accessibility - The primary control or named region for Popover has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - Focus either remains on the trigger for simple content or moves predictably to the first meaningful control. - Escape, the explicit close control, or a safe outside press closes it and restores focus to the trigger. - Enter or Space opens from the trigger - Tab moves through interactive content - Escape closes the popover ## Non-goals - The task needs a large or modal workflow - The surface is only a short passive hint ## Acceptance criteria - The panel opens only after deliberate activation - Interactive content has a logical focus order - Escape and the close control restore focus - The background remains usable because the panel is nonmodal
sha256:e1e0379123a7cb006d40b874c195a7e7ee5068107f4f624482400995fd03ae88