github chakra-ui/zag @zag-js/accordion@2.0.0-next.4

Major Changes

  • #3342
    d6089c3 Thanks
    @github-actions! - - Add hiddenUntilFound, so closed content stays
    searchable with the browser's find-in-page. A match opens the item. A [hidden] { display: none } reset blocks this,
    so exclude it:

    [hidden]:not([hidden="until-found"]) {
      display: none;
    }
    • Breaking: Remove arrow, Home and End navigation between triggers, and the loopFocus prop, following the
      WAI-ARIA accordion pattern. Triggers are reached with Tab. Remove loopFocus from your props.

    • Breaking: Default collapsible to true. Set it to false to keep one item open.

      - accordion.machine({})
      + accordion.machine({ collapsible: false })

Minor Changes

  • #3342
    4f28f36 Thanks
    @github-actions! - - Add reason to onValueChange details, such as
    trigger-click, keyboard, drag, item-select or script. Each component exports its ValueChangeReason type.
    Slider also adds it to onValueChangeEnd.

Patch Changes

  • #3342
    730ea29 Thanks
    @github-actions! - - Fix focus, scroll and sync work scheduled for the next
    frame running after the component unmounts.
  • Updated dependencies [a80b307]:
    • @zag-js/dom-query@2.0.0-next.4
    • @zag-js/core@2.0.0-next.4
    • @zag-js/anatomy@2.0.0-next.4
    • @zag-js/types@2.0.0-next.4
    • @zag-js/utils@2.0.0-next.4

Don't miss a new zag release

NewReleases is sending notifications on new releases.