mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
Storybook: fix theme colors not updating (#40679)
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user