Skip to content

v4.0.0

Compare
Choose a tag to compare
@gravity-ui-bot gravity-ui-bot released this 26 Jan 11:05
de0a0d5

4.0.0 (2023-01-26)

⚠️ Breaking Changes

  • DropdownMenu: renamed prop onMenuToggleonOpenToggle
  • DropdownMenu: removed props popupClassName and popupPlacement, use popupProps instead
  • DropdownMenu: changed type of DropdownMenuItemAction
  • Breadcrumbs: changed type of BreadcrumbsItem['action']
  • Label: s size became xs (20px) , new s size is 24px, default size changed to xs
  • Toaster: singleton is no more instantiated on load, you should do it manually
  • Toaster: removed deprecated methods createToast , removeToast , overrideToast. Use newer alternatives: add, remove, update
  • Toaster: renamed prop timeoutautoHiding
  • Toaster: removed prop allowAutoHiding, use autoHiding: false instead
  • Popover: forceLinksAppearance prop is false by default
  • HelpPopover: remove default offset
  • ShareTooltip: renamed to SharePopover
  • ShareTooltip: renamed prop socialNetsshareOptions
  • Icon: remove onClick prop (clicks should be handled by accessible element)
  • Text: renamed color prop value warning-mediumwarning
  • CSS: renamed var --yc-color-text-warning-medium--yc-color-text-warning
  • Modal: both Modal and Dialog are now using focus trapping by default for better accessibility.

🚀 Features

  • React 18 support

    Use specific versions of Toaster when using React 18

  • New CSS vars for semantic text over semantic background:
    • --yc-color-text-info-heavy
    • --yc-color-text-positive-heavy
    • --yc-color-text-danger-heavy
    • --yc-color-text-utility-heavy
    • --yc-color-text-misc-heavy