Skip to content

2.9.0

Latest

Choose a tag to compare

@sachinchoolur sachinchoolur released this 01 Oct 08:52
· 4 commits to master since this release
  • fix(lg-zoom): avoid reference error when containerRect in not defined #1684 - Author - @felix-berlin
  • Move all scss @import to @use/@forward #1697 - Author - @joeworkman

⚠️ Breaking: SCSS migrated to @use / @forward

Replaced all deprecated SCSS @import statements with the modern @use / @forward syntax. This improves maintainability and performance, but may break setups where you override lightGallery variables.

If you're not overriding any SCSS variables, nothing changes for you. But if you are, you'll now need to pass them at the time of use, like this:

@use 'lg-variables' as * with (
  $lg-theme-color: #f00
);

Overrides must be defined before importing lightGallery styles. Avoid mixing @import and @use in the same file.