Skip to content

Commit

Permalink
Prevent media background on deferred-media container (Shopify#2068)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmeleta authored and chavdar-ang committed Nov 20, 2022
1 parent f736fcc commit d2fbfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/product-thumbnail.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
{%- if media.media_type == 'model' -%}
<product-model class="deferred-media media media--transparent no-js-hidden" style="--ratio-percent: 100%;" data-media-id="{{ media.id }}">
{%- else -%}
<deferred-media class="deferred-media media no-js-hidden" style="--ratio-percent: {{ media_ratio }}%;" data-media-id="{{ media.id }}">
<deferred-media class="deferred-media media media--transparent no-js-hidden" style="--ratio-percent: {{ media_ratio }}%;" data-media-id="{{ media.id }}">
{%- endif -%}
<button id="Deferred-Poster-Modal-{{ media.id }}" class="deferred-media__poster" type="button">
<span class="deferred-media__poster-button motion-reduce">
Expand Down

0 comments on commit d2fbfa7

Please sign in to comment.