mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storybook: fix theme colors not updating (#40679)
This commit is contained in:
parent
b3027e8221
commit
1e471a6f76
@ -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,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user