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 withtop
,bottom
andauto
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
andheight
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 nativeloading="lazy"
attribute instead
Removed
- Remove IE11 support
- Removed
data-width
anddata-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 tofade-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