<Img sizes={banner.childImageSharp.sizes} outerWrapperClassName={styles.banner} position="absolute"/>
the layout is still:
div class="src-components-MainBanner----MainBanner-module---banner---1jnsz gatsby-image-outer-wrapper" style="position: relative;">
Try <Img sizes={banner.childImageSharp.sizes} outerWrapperClassName={styles.banner} style={{position: "absolute"}} />
Looks like the component doesn't care that much for the position prop, but changes it's style depending on the style.position prop
Thanks!
Most helpful comment
Try
<Img sizes={banner.childImageSharp.sizes} outerWrapperClassName={styles.banner} style={{position: "absolute"}} />Looks like the component doesn't care that much for the position prop, but changes it's style depending on the style.position prop