All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Compatibility with jQuery 3.5.0 (#240).
- Allow 'autoplay' on YouTube (#222).
- Fix dist files not compiled correctly for 2.3.0 release.
- Add
esc
option. Setting this option tofalse
prevents the lightbox from being closed when pressing the ESC key.
- Fix
focus()
not always available on active element, eg. for SVG elements in IE11 (#86).
- Fix focus not returned correctly when active element is the lightbox root element.
- Add support for Facebook Video URL's (#63, thanks @iamandrewluca).
- Fix compatibility with Zepto and note requirement of the data module.
- Correctly transfer hashes for generated YouTube, Vimeo and Google Maps URLs. For example when linking to a specific video start time, eg. https://vimeo.com/1084537#t=1m15s.
- Images in ligtboxes now have an
alt
attribute set. The content is configurable through thedata-lity-desc
attribute on the opener element. - Initial focus is now set on the dialog element, not on the first focusable element inside the content. This prevents inline content scrolled down if the first focusable element is at the bottom of the content.
- The global click event is now namespaced as
click.lity
for easier unbinding.
New major release. See the upgrade guide for detailed information about upgrading from 1.x.
- Lity is now fully accessible complying with the Web Content Accessibility Guidelines (WCAG) 2.0.
- The
lity
function is now used directly to open a lightbox. There is no longer a function returned but aLity
instance. - All custom events triggered by Lity receive now one parameter: a
Lity
instance. - There are now dedicated youtube, vimeo and googlemaps handlers extracted from the iframe handler.
- The changelog for Lity 1.x can be found here.