diff --git a/shared/patterns/CarouselFeatured/CarouselFeatured.tsx b/shared/patterns/CarouselFeatured/CarouselFeatured.tsx index 17cf454f12..636b021ae4 100644 --- a/shared/patterns/CarouselFeatured/CarouselFeatured.tsx +++ b/shared/patterns/CarouselFeatured/CarouselFeatured.tsx @@ -1,10 +1,9 @@ import React, { useState, useCallback } from 'react'; import clsx from 'clsx'; -import { Button } from '../../components/Button'; import { CarouselButton } from '../../components/CarouselButton'; import { Divider } from '../../components/Divider'; import { PageGrid, PageGridRow, PageGridCol } from '../../components/PageGrid'; -import { ButtonConfig } from '../ButtonGroup'; +import { ButtonGroup, ButtonConfig } from '../ButtonGroup'; /** * Props for a single slide in the CarouselFeatured component @@ -221,35 +220,14 @@ export const CarouselFeatured = React.forwardRef {/* Buttons wrapper - groups primary and tertiary together */} -
- {/* Primary button */} - {primaryButton && ( - - )} - - {/* Tertiary button */} - {tertiaryButton && ( - - )} -
+ {(primaryButton || tertiaryButton) && ( + !!btn)} + color="black" + forceColor={background !== 'neutral'} + className="bds-carousel-featured__buttons" + /> + )} {/* Mobile/Tablet nav buttons */}