Skip to content

Commit a09004d

Browse files
authored
Add left scroll padding to ensure the correct snap position on each breakpoint (#12048)
1 parent 9e0c550 commit a09004d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dotcom-rendering/src/components/HighlightsContainer.importable.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ const carouselStyles = css`
3434
${until.desktop} {
3535
scroll-padding-left: 10px;
3636
}
37+
${from.desktop} {
38+
scroll-padding-left: 240px;
39+
}
40+
${from.leftCol} {
41+
scroll-padding-left: 80px;
42+
}
43+
44+
${from.wide} {
45+
scroll-padding-left: 240px;
46+
}
3747
/**
3848
* Hide scrollbars
3949
* See: https://stackoverflow.com/a/38994837

0 commit comments

Comments
 (0)