Tooltip
Información sobre herramientas
Un tooltip es una nota corta sobre un control. Se abre cuando pasas el mouse o usas el teclado para enfocarlo. No se puede usar como un botón.
role="tooltip"Un ejemplo real
Cuando un botón de icono recibe el foco del teclado, aparece “Copiar enlace”. El foco permanece en el botón.
Partes principales
- 01Activador
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
Úsalo cuando
Úselo para explicar una etiqueta de control corta tanto al pasar el ratón como al enfocar con el teclado.
No lo uses cuando
Nunca pongas acciones, instrucciones que deben leerse, o contenido largo dentro de una información sobre herramientas (tooltip).
Nombre usado en código
role="tooltip" Antes de lanzarlo
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome: Complete the task with Información sobre herramientas (Tooltip). User context: Cuando un botón de icono recibe el foco del teclado, aparece “Copiar enlace”. El foco permanece en el botón. Recommended pattern: Información sobre herramientas (Tooltip). Why it fits: Úselo para explicar una etiqueta de control corta tanto al pasar el ratón como al enfocar con el teclado. Do not use it when: Nunca pongas acciones, instrucciones que deben leerse, o contenido largo dentro de una información sobre herramientas (tooltip). Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): El estándar cubre únicamente el alcance listado. No elige el estilo visual, la decisión del producto ni el ejemplo de Vibulary. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Revisa esta petición
Review how Información sobre herramientas (Tooltip) is used now. Definition: Un tooltip es una nota corta sobre un control. Se abre cuando pasas el mouse o usas el teclado para enfocarlo. No se puede usar como un botón. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.