Skip to content

Commit

Permalink
Adding aria label to next stat button (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte authored Jul 7, 2023
1 parent 0f2d796 commit 2ad718b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions common/components/general/WidgetCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const WidgetCarousel: FC<WidgetCarouselProps> = ({ 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"
>
Expand Down
6 changes: 3 additions & 3 deletions common/components/widgets/internal/WidgetForCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ad718b

Please sign in to comment.