Storybook: fix theme colors not updating (#40679)

This commit is contained in:
Jack Westbrook 2021-10-20 13:30:00 +02:00 committed by GitHub
parent b3027e8221
commit 1e471a6f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

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].*' },

View File

@ -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,