Shopify / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
2.48k stars 3.31k forks source link

Image Banner section - Overlay incorrectly applied to transparent png images #898

Open zacalexander opened 2 years ago

zacalexander commented 2 years ago

Describe the current behavior

Describe the expected behavior

Version information (Dawn, browsers and operating systems)

Additional context/screenshots Tested with various different .png images, and only seems to occur when the image is transparent. The transparent .png of the Shopify logo can be used to replicate the behaviour, though any transparent .png should behave similarly.

image

ADTC commented 2 years ago

I had to add an inline CSS as a hack to solve this:

#Banner-{{ section.id }} .banner__media {
  background-color: transparent;
}

But yes, definitely this is a problem that must be resolved otherwise.

melissaperreault commented 1 year ago

I am confirming this is still an issue on Dawn Version: 8.0.0