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

Major Changes

  • #3342
    d6089c3 Thanks
    @github-actions! - - Breaking: Remove the indicator's inline transition
    and the --transition-* CSS variables. Add the transition in CSS, and turn it off for data-instant, which is set
    when the indicator moves for a reason other than a value change (first render, resize, dir or orientation change).

      [data-radio-group-indicator] {
    -   --transition-duration: 0.2s;
    -   --transition-timing-function: ease-in-out;
    +   transition:
    +     left 0.2s ease-in-out,
    +     width 0.2s ease-in-out;
      }
    +
    + [data-radio-group-indicator][data-instant] {
    +   transition: none;
    + }
    • Breaking: Replace data-ssr with data-indicator-pending. It's set during server rendering and while the
      indicator hasn't been measured, such as inside a hidden panel.

      - [data-radio-group-item][data-state="checked"][data-ssr] { ... }
      + [data-radio-group-item][data-state="checked"][data-indicator-pending] { ... }
    • Fix the indicator animating on resize after a transition never finished.

    • Breaking: Submit the value of a read-only radio group. Only a disabled one is left out of the form, like a
      native input.

Patch Changes

  • Updated dependencies [a80b307]:
    • @zag-js/dom-query@2.0.0-next.4
    • @zag-js/core@2.0.0-next.4
    • @zag-js/focus-visible@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.