adobe/helix-website

First image in fragment treated as a hero image

shsteimer opened this issue · 0 comments

Actual Behaviour

When inserting a fragment, the doc-detail-hero-image is added to the first image for the fragment, causing it to be treated like a hero image and cropped (via object-fit: cover) in an odd way

Expected Behaviour

doc-detail-hero-image should be omitted inside a fragment

Reproduce Scenario (including but not limited to)

Steps to Reproduce

See https://www.hlx.live/docs/byo-cdn-akamai-setup#go-to-identity--access-management

Platform and Version

Mac OS, Chrome

Sample Code that illustrates the problem

Logs taken while reproducing problem