Storybook: fix theme colors not updating (#40679) (#40691)

(cherry picked from commit 1e471a6f76)

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-10-20 14:11:40 +02:00
committed by GitHub
co-authored by Jack Westbrook
parent 66a0a108ac
commit b993a3f2fc
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ export const parameters = {
container: ThemedDocsContainer,
},
darkMode: {
dark: GrafanaDark,
light: GrafanaLight,
dark: { ...GrafanaDark, base: 'dark' },
light: { ...GrafanaLight, base: 'light' },
},
layout: 'fullscreen',
actions: { argTypesRegex: '^on[A-Z].*' },
@@ -5,8 +5,6 @@ import '../src/components/Icon/iconBundle';
const createStorybookTheme = (theme: GrafanaTheme2) => {
return create({
base: theme.name.includes('Light') ? 'light' : 'dark',
colorPrimary: theme.colors.primary.main,
colorSecondary: theme.colors.error.main,