Skip to content

Commit c5ca05e

Browse files
committed
Add container div to slideshow carousel
1 parent d465b06 commit c5ca05e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const carouselItemStyles = css`
5656
scroll-snap-align: start;
5757
`;
5858

59-
const carouselLinkStyles = css`
59+
const containerStyles = css`
6060
position: relative;
6161
z-index: ${getZIndex('card-nested-link')};
6262
`;
@@ -214,10 +214,9 @@ export const SlideshowCarousel = ({
214214
const slideshowImageCount = slideshowImages.length;
215215

216216
return (
217-
<>
217+
<div css={containerStyles}>
218218
<a
219219
href={linkTo}
220-
css={carouselLinkStyles}
221220
aria-label={linkAriaLabel}
222221
data-link-name={dataLinkName}
223222
>
@@ -302,6 +301,6 @@ export const SlideshowCarousel = ({
302301
</div>
303302
</div>
304303
)}
305-
</>
304+
</div>
306305
);
307306
};

0 commit comments

Comments
 (0)