From 78c3c08de7149b021fbcc44b5c62285287aaa036 Mon Sep 17 00:00:00 2001 From: KoukiNishihara Date: Wed, 13 May 2020 03:05:27 +0900 Subject: [PATCH 1/2] Delete animation --- packages/core/src/components/Status/Status.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/src/components/Status/Status.tsx b/packages/core/src/components/Status/Status.tsx index b34f8a3c31..189b32475c 100644 --- a/packages/core/src/components/Status/Status.tsx +++ b/packages/core/src/components/Status/Status.tsx @@ -54,7 +54,6 @@ const useStyles = makeStyles((theme) => ({ running: { '&::before': { backgroundColor: theme.palette.status.running, - animation: '$blink 0.8s step-start 0s infinite', }, }, aborted: { From 5753652dd4f00b756d2f9d1580dd541950ad6009 Mon Sep 17 00:00:00 2001 From: KoukiNishihara Date: Wed, 13 May 2020 03:26:11 +0900 Subject: [PATCH 2/2] Refactor background on animation --- packages/core/src/components/Status/Status.tsx | 5 ----- packages/theme/src/themes.ts | 2 -- packages/theme/src/types.ts | 1 - 3 files changed, 8 deletions(-) diff --git a/packages/core/src/components/Status/Status.tsx b/packages/core/src/components/Status/Status.tsx index 189b32475c..9d8450293f 100644 --- a/packages/core/src/components/Status/Status.tsx +++ b/packages/core/src/components/Status/Status.tsx @@ -61,11 +61,6 @@ const useStyles = makeStyles((theme) => ({ backgroundColor: theme.palette.status.aborted, }, }, - '@keyframes blink': { - '50%': { - backgroundColor: theme.palette.status.background, - }, - }, })); export const StatusOK: FC<{}> = (props) => { diff --git a/packages/theme/src/themes.ts b/packages/theme/src/themes.ts index 86fb5a1982..33cefe3283 100644 --- a/packages/theme/src/themes.ts +++ b/packages/theme/src/themes.ts @@ -29,7 +29,6 @@ export const lightTheme = createTheme({ running: '#2E77D0', pending: '#FFED51', aborted: '#757575', - background: '#F8F8F8', }, bursts: { fontColor: '#FEFEFE', @@ -70,7 +69,6 @@ export const darkTheme = createTheme({ running: '#2E77D0', pending: '#FFED51', aborted: '#757575', - background: '#F8F8F8', }, bursts: { fontColor: '#FEFEFE', diff --git a/packages/theme/src/types.ts b/packages/theme/src/types.ts index 54bca9d61b..82c717e433 100644 --- a/packages/theme/src/types.ts +++ b/packages/theme/src/types.ts @@ -28,7 +28,6 @@ type PaletteAdditions = { pending: string; running: string; aborted: string; - background: string; }; border: string; textContrast: string;