You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 [BUG] - Hero Image does not take full width when leveraging "picture" tag #908
Currently, the img has 100% width but it does not fit its container since it is wrapped in a picture that does not have 100% width on it.
Reproduction steps
This bug is not currently live so I cannot link to a direct instance that is in production. I noticed this bug while enhancing the `Hero.Image`.
1. Render a `Hero` component with a `Hero.Image` that looks like this:
<Hero.Image
position="block-end"
src="REPLACE ME WITH DUMMY IMAGE"
alt=""
/>
You should see the Hero Image take the full width of the content of the page (1248px).
2. Leverage the `as="picture"` prop in the `Hero.Image`. The implementation should look like:
<Hero.Image
as="picture"
position="block-end"
src="REPLACE ME WITH DUMMY IMAGE"
sources={[.....]}
alt=""
/>
The `Hero.Image` no longer takes up the full width of the page.
Expected behavior
I would expect the `Hero.Image` to take the full width of the page. I do not think leveraging the `picture` tag should affect the layout of the image.
Activity