Skip to content

Commit

Permalink
Adjust carousel spacing to allow for media cards (#12576)
Browse files Browse the repository at this point in the history
* Add space to top of carousel between tablet and wide

* Replace margin with flex gap
  • Loading branch information
jamesmockett authored Oct 18, 2024
1 parent 5895bf0 commit 43fdd4f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ const themeButtonDisabled = {
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 @@ -161,9 +165,6 @@ const verticalLineStyles = css`

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

const buttonLayoutStyles = css`
Expand Down

0 comments on commit 43fdd4f

Please sign in to comment.