Skip to content

Commit

Permalink
Add type to button themes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Oct 18, 2024
1 parent 6672f29 commit 0f219b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Hide,
SvgChevronLeftSingle,
SvgChevronRightSingle,
type ThemeButton,
} from '@guardian/source/react-components';
import { useEffect, useRef, useState } from 'react';
import { palette } from '../palette';
Expand Down Expand Up @@ -41,12 +42,12 @@ const titlePreset = headlineMedium24Object;
const gridColumnWidth = '60px';
const gridGap = '20px';

const themeButton = {
const themeButton: Partial<ThemeButton> = {
borderTertiary: palette('--carousel-chevron-border'),
textTertiary: palette('--carousel-chevron'),
};

const themeButtonDisabled = {
const themeButtonDisabled: Partial<ThemeButton> = {
borderTertiary: palette('--carousel-chevron-border-disabled'),
textTertiary: palette('--carousel-chevron-disabled'),
};
Expand Down

0 comments on commit 0f219b2

Please sign in to comment.