Skip to content

Commit

Permalink
Fix using the image container with lazyloaded images
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina committed Oct 30, 2024
1 parent 6b77a8d commit a5f3956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-framework",
"version": "4.18.1",
"version": "4.18.2",
"author": {
"email": "[email protected]",
"name": "Canonical Webteam"
Expand Down Expand Up @@ -84,4 +84,4 @@
"peerDependencies": {
"sass": "^1.79.0"
}
}
}
4 changes: 2 additions & 2 deletions scss/_patterns_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ $aspect-ratios: (
justify-content: center;
text-align: center;

// If there is a child element that is not the image, don't let it affect the layout
& > *:not(.p-image-container__image) {
// If there is a child lazyloaded image, don't let it affect the layout
& > .lazyloaded {
display: contents;
}

Expand Down

0 comments on commit a5f3956

Please sign in to comment.