Skip to content

v4.0.0

Latest

Choose a tag to compare

@untemps untemps released this 30 Apr 18:45
· 22 commits to main since this release

4.0.0 (2026-04-30)

Bug Fixes

  • Base role="dialog" on focusable content elements in addition to contentActions (#239) (8dc08b8)

Features

  • Add onPlacementChange callback when tooltip auto-flips position (#237) (cd5bb15)
  • Add portal prop to render tooltip into document.body (#233) (f47e90c)
  • Allow touch events in showOn/hideOn with passive listeners (#238) (ac97dc6)
  • Pass triggering Event to onEnter and onLeave callbacks (#240) (670a367)

BREAKING CHANGES

  • role="dialog", aria-haspopup, aria-expanded, and the
    focus trap are now applied only when contentActions is set AND the
    template content contains at least one focusable element (button, a,
    input…). Previously, contentActions alone was sufficient. Add a
    focusable element to the template content to restore dialog semantics.
  • The tooltip is now rendered into document.body with
    position: fixed by default (portal: true). Any CSS selector targeting
    .target > .tooltip will break. Set portal: false to restore the pre-v4
    behavior where the tooltip is a direct child of the target element.