diff --git a/common/components/general/WidgetCarousel.tsx b/common/components/general/WidgetCarousel.tsx index 2d291ba6a..95784fb1f 100644 --- a/common/components/general/WidgetCarousel.tsx +++ b/common/components/general/WidgetCarousel.tsx @@ -46,6 +46,7 @@ export const WidgetCarousel: FC = ({ children, isSingleWidg className={classNames( 'group/button flex cursor-pointer items-center justify-center rounded-md focus:outline-none lg:p-1' )} + aria-label={'Next Statistic'} onClick={navigateTo(activeItem + 1)} type="button" > diff --git a/common/components/widgets/internal/WidgetForCarousel.tsx b/common/components/widgets/internal/WidgetForCarousel.tsx index ae9ef04d0..0d9c050e8 100644 --- a/common/components/widgets/internal/WidgetForCarousel.tsx +++ b/common/components/widgets/internal/WidgetForCarousel.tsx @@ -5,10 +5,10 @@ import { LoadingSpinner } from '../../graphics/LoadingSpinner'; import { useBreakpoint } from '../../../hooks/useBreakpoint'; import { Delta } from './Delta'; -export type LayoutKind = 'total-and-delta' | 'delta-and-percent-change' | 'no-delta'; -export type SentimentDirection = 'positiveOnIncrease' | 'negativeOnIncrease'; +type LayoutKind = 'total-and-delta' | 'delta-and-percent-change' | 'no-delta'; +type SentimentDirection = 'positiveOnIncrease' | 'negativeOnIncrease'; -export type WidgetForCarouselProps = { +type WidgetForCarouselProps = { analysis: React.ReactNode; widgetValue: WidgetValueInterface; sentimentDirection?: SentimentDirection;