Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
use input props to set height and with vs hard set.
Browse files Browse the repository at this point in the history
They use set image props to set the width and height attr on the sorce sets.  this will allow for proper overriding when being sent in via imageOptions and MobileImageOptions.
  • Loading branch information
B77Mills committed Aug 26, 2024
1 parent 55fbf60 commit 75b61b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ $ const blockName = "section-feed-content-node";
$ const link = linkField && get(content, linkField) ? get(content, linkField) : get(content, "siteContext.path");
<marko-web-picture>
<@link href=link target=linkTarget attrs=linkAttrs />
<@source srcset=srcset media="(min-width: 768px)" width=250 height=167 />
<@source srcset=srcset media="(min-width: 768px)" width=imageOptions.w height=imageOptions.h />
<@image
src=srcMobile
srcset=srcsetMobile
class=[`${blockName}__image`]
alt=primaryImage.alt
lazyload=lazyload
attrs={ width: "112", height: "112" }
attrs={ width: mobileImageOptions.w, height: mobileImageOptions.h }
/>
</marko-web-picture>
</marko-web-element>
Expand Down

0 comments on commit 75b61b0

Please sign in to comment.