Skip to content

Commit

Permalink
Add spacing to prevent carousel content being flush with buttons (#12675
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jamesmockett authored Oct 24, 2024
1 parent 9fcf2ca commit 873c655
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dotcom-rendering/src/components/ScrollableCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ const themeButtonDisabled: Partial<ThemeButton> = {
const carouselContainerStyles = css`
display: flex;
flex-direction: column-reverse;
${from.tablet} {
gap: ${space[2]}px;
}
${from.wide} {
flex-direction: row;
gap: ${space[1]}px;
}
/* Extend carousel into outer margins on mobile */
Expand Down Expand Up @@ -121,9 +125,6 @@ const carouselStyles = css`

const buttonContainerStyles = css`
margin-left: auto;
${from.wide} {
margin-left: ${space[1]}px;
}
`;

const buttonLayoutStyles = css`
Expand Down

0 comments on commit 873c655

Please sign in to comment.