yarn uikit 3.12.0

latest releases: 3.21.14-dev.b30a3c99a, 3.21.14-dev.df667ac16, 3.21.14-dev.dc75d9668...
2 years ago

Added

  • Add support for <picture> element to Image component
  • Add sources option to emulate <picture> element for background images to Image component
  • Add loading option to avoid lazy loading background images in first visible viewport to Image component
  • Add support for loading="lazy" attribute to SVG component
  • Add position option with top, bottom and auto values to Sticky component
  • Add support for basic math operands in offset option of Sticky component
  • Add animation stop positions to Parallax component
  • Add object fit and position classes to Utility component
  • Add height viewport classes to Height component

Changed

  • Image elements need width and height attributes to prevent layout shifts
  • Image component no longer relies on session storage to check for cached images to immediately show an image
  • Slider and Switcher remove native loading="lazy" attribute from adjacent slides
  • Accordion, Drop, Switcher and Toggle remove native loading="lazy" attribute from their children when entering the viewport
  • Improve sticky behavior if sticky content is larger than the viewport
  • Sticky component's bottom option checks for bottom padding if sticky element is within referenced element
  • Height Viewport component sets uk-height-viewport class to reduce initial layout shifts

Deprecated

  • Deprecate uk-img for <img> element: Use native loading="lazy" attribute instead

Removed

  • Remove IE11 support
  • Removed data-width and data-height for <img> element from Image component. Use native attributes instead.

Fixed

  • Fix infinite sliding in Slider component with equally sized slides
  • Fix Slider component sets calculation
  • Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
  • Fix dropdown no longer closes if pointer is still moving towards it
  • Fix fadein not transformed correctly to fade-in in scss build
  • Fix Sticky component setting wrong margin for placeholder
  • Fix Sticky placeholder sets height with fraction
  • Fix Sticky component does not animate in if scroll position equals top offset
  • Fix Sticky component prevents transition on selTarget if forced to hide for recalculation
  • Fix Parallax component initial jump in background image

Don't miss a new uikit release

NewReleases is sending notifications on new releases.