Skip to content

Commit

Permalink
Prevent vertical scrolling of carousels (#12960)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett authored and sndrs committed Dec 9, 2024
1 parent 18c360d commit 8f0301e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotcom-rendering/src/components/ScrollableCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const carouselStyles = css`
grid-auto-flow: column;
gap: 20px;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
overscroll-behavior: contain auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const themeButtonDisabled: Partial<ThemeButton> = {
const carouselStyles = css`
display: flex;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
overscroll-behavior: contain auto;
Expand Down

0 comments on commit 8f0301e

Please sign in to comment.