Minor Changes
-
#3252
d402e9cThanks
@github-actions! - Add@zag-js/safe-areaand use it in the hover card to
track the pointer travelling between the trigger and the content.- Fixed issue where the hover card closed while the pointer was still on its way to the content. Moving diagonally, or
pausing for longer thancloseDelay, no longer dismisses it. - Fixed issue where a hover card opened programmatically or by keyboard was dismissed by pointer movement anywhere on
the page.
The
openandclosingstates are nowopen.idleandopen.closing.state.matches("open")still works, but code
matching the literal state"closing"should use"open.closing".The tooltip uses it too when
interactiveis set, so the pointer can reach a hoverable tooltip without it closing on
the way (WCAG 1.4.13). Non-interactive tooltips are unchanged. - Fixed issue where the hover card closed while the pointer was still on its way to the content. Moving diagonally, or