implementation
Implement in your agent
# Implement Tooltip in your agent ## Objective Implement Tooltip for this verified behavior: A short, noninteractive hint that appears when a control receives pointer hover or keyboard focus. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Tooltip matches the need before writing code. ## Required behavior - Pointer hover or keyboard focus reveals the information after a short delay. - Escape closes the temporary surface and returns focus to a sensible control. ## States to cover - Tooltip hidden — Tooltip hidden - Tooltip visible — Tooltip visible ## Accessibility - The primary control or named region for Tooltip has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - Focus remains on the trigger; the tooltip itself never enters the tab order. - It closes on Escape and after both focus and pointer leave the trigger and surface. - Tab focuses the trigger - Escape dismisses the visible tooltip ## Non-goals - The information is essential to completing the task - The content needs links, buttons, or form controls ## Acceptance criteria - The same hint is available on hover and keyboard focus - The tooltip contains no interactive control - Escape closes it without moving focus - Touch users are not denied essential information
sha256:cf0a7dd64e82de4ff40a43a8bcda654b26913d618e2f2cf98268720a4a5f6f9b