Skip to content

v5.11.6

Compare
Choose a tag to compare
@mnajdova mnajdova released this 23 Jan 20:43
· 4842 commits to master since this release
a2e5523

Jan 23, 2023

A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:

  • @ZeeshanTamboli improved the logic for handling the value label in the SliderUnstyled (#35805)
  • many other 🐛 bug fixes and 📚 documentation improvements

@mui/[email protected]

  • ​[Box] Fix usage of not supported features in TypeScript 3.5 (#35877) @mnajdova
  • ​[Button] Fix border color for secondary disabled button (#35866) @SaidMarar
  • ​[SwipeableDrawer] Add callback to customise touchstart ignore for swipeable drawer (#30759) @tech-meppem

@mui/[email protected]

Breaking changes

  • ​[SliderUnstyled] Improved logic for displaying the value label (#35805) @ZeeshanTamboli

    • The valueLabelDisplay prop is removed from SliderUnstyled. The prop was not working as intended in SliderUnstyled (See #35398). You can instead provide a valueLabel slot with the slots prop API to show the value label:
    - <SliderUnstyled valueLabelDisplay="on" />
    + <SliderUnstyled slots={{ valueLabel: SliderValueLabel }} />

    The following demo shows how to show a value label when it is hovered over with the thumb: https://mui.com/base/react-slider/#value-label

    • The following classes are removed from sliderUnstyledClasses since they are not needed for the value label:
    - valueLabel
    - valueLabelOpen
    - valueLabelCircle
    - valueLabelLabel

    In the custom value label component, you can define your own classNames and target them with CSS.

    • The SliderValueLabelUnstyled component is removed from SliderUnstyled. You should provide your own custom component for the value label.

    • To avoid using React.cloneElement API in value label, the component hierarchy structure of the value label is changed. The value label is now inside the Thumb slot - Thumb -> Input, ValueLabel.

Changes

  • ​[InputUnstyled] Fix externally provided inputRef is ignored (#35807) @sai6855

@mui/[email protected]

  • ​[Avatar][joy] Remove imgProps prop and add Codemod script for migration (#35859) @hbjORbj

Docs

Core

All contributors of this release in alphabetical order: @HeVictor, @hbjORbj, @joserodolfofreitas, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rosita-dmello, @sai6855, @SaidMarar, @tech-meppem, @ZeeshanTamboli