Skip to content

Commit af47862

Browse files
authored
[polaris.shopify.com] Fix website homepage image bug (#7544)
Fixes an issue that caused the home page to render the reduced-motion fallback weirdly. Fixes #7540
1 parent a595fa3 commit af47862

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.changeset/six-dogs-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris.shopify.com': patch
3+
---
4+
5+
Fixes an issue that caused the reduced-motion fallback to appear broken on the home page.
-196 KB
Loading

polaris.shopify.com/src/components/HomePage/HomePage.module.scss

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,23 +189,12 @@
189189
flex-direction: column-reverse;
190190
background: var(--decorative-4);
191191

192-
video {
192+
video,
193+
.Poster {
193194
width: 100%;
194195
height: auto;
195196
filter: brightness(100%) contrast(2) saturate(0);
196197
mix-blend-mode: plus-lighter;
197198
}
198199
}
199-
200-
.Poster {
201-
position: absolute;
202-
border-radius: 24px;
203-
overflow: hidden;
204-
width: 60%;
205-
height: 85%;
206-
left: 50%;
207-
top: 50%;
208-
transform: translateY(-50%) translateX(33px);
209-
box-shadow: 0 50px 50px rgba(0, 0, 0, 0.15);
210-
}
211200
}

0 commit comments

Comments
 (0)