Skip to content

v0.2.87

Choose a tag to compare

@github-actions github-actions released this 22 Feb 15:57
· 394 commits to main since this release
ac55add

v0.2.87 — Brief summary

A small release that fixes hover-card focus behavior and upgrades tooltip positioning to a popup-based engine with improved offset/collision and portaling support.

Packages updated in this release

  • @data-slot/hover-card
  • @data-slot/tooltip

@data-slot/hover-card

  • 🐛 Fix: Prevents dialog auto-focus (and other programmatic focus) from opening nested hover-cards — hover-cards now track recent Tab key usage and ignore pure programmatic focus that would otherwise open nested cards.
  • UX: Improved keyboard/pointer focus handling to reduce accidental openings after dialogs or programmatic focus.

@data-slot/tooltip

  • ✨ Feature: Switched to a popup-based positioning engine with:
    • support for side/align offsets (sideOffset, alignOffset),
    • collision handling (avoidCollisions, collisionPadding),
    • position sync and improved placement stability.
  • ✨ Feature: Content can be portaled (portal: true by default) and demo styles updated for portaled open/close animations.
  • Note: New options are available to fine-tune distance, alignment, collision behavior, and portaling.

💥 Breaking changes / migration notes

  • Tooltip positioning now uses a popup-based approach and introduces new config options (sideOffset, alignOffset, avoidCollisions, collisionPadding, portal). While defaults aim to preserve prior behavior, if you relied on exact positioning or on non-ported DOM structure, verify your layouts and animations after upgrading.

Commit highlights

  • feat(tooltip): switch to popup-based positioning with offsets/collision support and update demo styles for portaled state animations
  • fix(hover-card): prevent dialog auto-focus from opening nested hover-cards

If you rely on either component in complex focus/positioning scenarios, please test those flows after upgrading.