Major Changes
-
#3342
d6089c3Thanks
@github-actions! - - Breaking: Replace thearia-labeland
aria-labelledbyarray props withgetAriaLabelandgetAriaLabelledBy, matchinggetAriaValueText.slider.machine({ - "aria-label": ["Minimum price", "Maximum price"], + getAriaLabel: ({ index }) => (index === 0 ? "Minimum price" : "Maximum price"), })-
Breaking: Leave a disabled slider out of form submission, like a native input.
-
Add
disabledtogetThumbPropsandgetHiddenInputPropsto disable a single thumb. -
Add
inRangeto the marker state anddata-in-rangeto markers within the filled range. -
Accept a single number for
thumbSize, setting both width and height. -
Add
aria-readonlyto the thumbs whenreadOnlyis set, andaria-invalidanddata-invalidwhen invalid. -
Fix thumbs with their own label getting
aria-labelledbypointing at the label part. -
Fix the range falling short of the thumb's center when
thumbAlignmentis"contain". -
Fix
onValueChangeEndfiring when an interaction ends on the starting value. -
Fix Page Up, Page Down and Shift + Arrow snapping to multiples of
largeStepinstead of moving by it. -
Fix stacked thumbs getting stuck when
thumbCollisionBehavioris"none".
-
Minor Changes
- #3342
4f28f36Thanks
@github-actions! - - AddreasontoonValueChangedetails, such as
trigger-click,keyboard,drag,item-selectorscript. Each component exports itsValueChangeReasontype.
Slider also adds it toonValueChangeEnd.
Patch Changes
- #3342
730ea29Thanks
@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