diff --git a/overrides/common/embedded-video-carousel.tsx b/overrides/common/embedded-video-carousel.tsx index cc62e97bc..7ada6c72e 100644 --- a/overrides/common/embedded-video-carousel.tsx +++ b/overrides/common/embedded-video-carousel.tsx @@ -71,6 +71,7 @@ const ButtonGroup = styled.div` top: calc(${(props) => props.topHeight}px + ${glsp(4)}); left: unset; align-items: center; + z-index: 5; `; const buttonStyle = createButtonStyles({ @@ -128,6 +129,30 @@ export default function Carousel({ items }: EmbeddedVideosPropType) { totalSlides={items.length} style={{ gridColumn: "1 / -1", gridRow: "2", position: "relative" }} > + {items.length > 1 && ( + + + + + {/* A workaround to show current slide number/ total slide number */} + { + return ( + + {props.currentSlide + 1}/{items.length + 1} + + ); + }} + /> + + + + + )}
@@ -151,38 +176,13 @@ export default function Carousel({ items }: EmbeddedVideosPropType) {

{t.caption}

- {t.title} + + {t.title} + ))}
- {items.length > 1 && ( - - - - - {/* A workaround to show current slide number/ total slide number */} - { - return ( - - {props.currentSlide + 1}/{items.length + 1} - - ); - }} - /> - - - - - )}