- fix(lg-zoom): avoid reference error when containerRect in not defined #1684 - Author - @felix-berlin
- Move all scss
@importto@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.