diff --git a/web/core/Carousel/Carousel.tsx b/web/core/Carousel/Carousel.tsx index 7e140b8b9..8b7be905a 100644 --- a/web/core/Carousel/Carousel.tsx +++ b/web/core/Carousel/Carousel.tsx @@ -279,7 +279,7 @@ export const Carousel = forwardRef(function Carousel {...(hasSectionTitle && { role: 'region', })} - {...(labelledbyId && { + {...(typeof labelledbyId !== undefined && { 'aria-labelledby': labelledbyId, })} {...(!labelledbyId && diff --git a/web/sections/ImageCarousel/ImageCarousel.tsx b/web/sections/ImageCarousel/ImageCarousel.tsx index a7248b7d1..b1e5d76d9 100644 --- a/web/sections/ImageCarousel/ImageCarousel.tsx +++ b/web/sections/ImageCarousel/ImageCarousel.tsx @@ -21,24 +21,26 @@ const ImageCarousel = forwardRef(function return ( -
- {title && !hideTitle && ( - - )} - {ingress && } -
+ {((title && !hideTitle) || ingress) && ( +
+ {title && !hideTitle && ( + + )} + {ingress && } +
+ )}