implementation
Implement in your agent
# Implement Drawer in your agent ## Objective Implement Drawer for this verified behavior: A temporary panel that slides from a viewport edge, overlays the page, and closes when its focused task is finished. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Drawer matches the need before writing code. ## Required behavior - The temporary panel overlays the page and moves in from a defined viewport edge. - While modal, keyboard focus stays inside the surface until it closes. - Escape closes the temporary surface and returns focus to a sensible control. ## States to cover - Drawer closed — Drawer closed - Drawer open — Drawer open ## Accessibility - The primary control or named region for Drawer has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - Opening places focus on the drawer heading or first useful field, contains it, and closing restores the opener. - The named close control and Escape always work; backdrop dismissal is disabled when it could discard changes. - Tab remains inside while open - Escape closes without applying unintended changes - Enter activates only the focused control ## Non-goals - The navigation must stay visible across pages - The task needs the full viewport or several steps ## Acceptance criteria - The panel is temporary and overlays the page - Its edge and modal behavior are explicit - Focus is contained and restored - The narrow layout keeps every action reachable
sha256:5e8af293a300e81b36294a870b94998737dff3a2049ad42627167bf99f1f58d7