Major Changes
-
#3342
08ea850Thanks
@github-actions! - Zag no longer sets az-indexon overlays. Set it in
CSS, using--layer-indexfor the overlay's place in the stack.-
Fix a
z-indexset on the positioner in CSS being overridden. -
Fix overlays dropping behind other layers while they animate out.
--layer-indexstays set after close.
Breaking: Move the
z-indexto the positioner (or the backdrop) and add--layer-index.- [data-popover-content] { + [data-popover-positioner] { - z-index: 1400; + z-index: calc(1400 + var(--layer-index)); }
-
Popover, menu, select, combobox, hover card, tooltip, date picker, color picker and cascade select no longer copy
the content'sz-indexonto the positioner or set--z-index. -
Dialog and drawer no longer set
--z-index. Use--layer-indexon the backdrop and positioner. -
The floating panel no longer sets a
z-index. Style the positioner as above to bring the focused panel to the
front. -
The tour no longer copies the content's
z-indexonto dialog steps. Style the positioner with--tour-layer. -
The toast group no longer sets an inline
z-index. Set it on[data-toast-group]in CSS. -
Remove the
zIndexandzIndexFallbackoptions fromgetDismissableLayerStyle.
-
Minor Changes
-
#3342
4f28f36Thanks
@github-actions! - - AddreasontoonOpenChangedetails, such as
trigger-click,escape-key,interact-outside,item-selectorscript. Each component exports its
OpenChangeReasontype.- Add an optional
reasontoapi.setOpen(open, reason), defaulting toscript.
- Add an optional
-
#3342
d6089c3Thanks
@github-actions! - - Add aviewportpart to animate switching between
triggers. Render a content per trigger withgetContentProps({ value })andgetContentValues().-
Add
data-activation-directionandapi.activationDirection, anddata-transitioningon the positioner and
viewport while switching triggers. -
Fix the tooltip opening after the trigger is clicked during the open delay.
-
Fix the next tooltip waiting for its full delay when hovered shortly after another closes.
-
Fix a closed tooltip reopening when the window regains focus.
-
Fix Escape not closing the tooltip inside an iframe.
-