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,
|
container: ThemedDocsContainer,
|
||||||
},
|
},
|
||||||
darkMode: {
|
darkMode: {
|
||||||
dark: GrafanaDark,
|
dark: { ...GrafanaDark, base: 'dark' },
|
||||||
light: GrafanaLight,
|
light: { ...GrafanaLight, base: 'light' },
|
||||||
},
|
},
|
||||||
layout: 'fullscreen',
|
layout: 'fullscreen',
|
||||||
actions: { argTypesRegex: '^on[A-Z].*' },
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
||||||
|
@ -5,8 +5,6 @@ import '../src/components/Icon/iconBundle';
|
|||||||
|
|
||||||
const createStorybookTheme = (theme: GrafanaTheme2) => {
|
const createStorybookTheme = (theme: GrafanaTheme2) => {
|
||||||
return create({
|
return create({
|
||||||
base: theme.name.includes('Light') ? 'light' : 'dark',
|
|
||||||
|
|
||||||
colorPrimary: theme.colors.primary.main,
|
colorPrimary: theme.colors.primary.main,
|
||||||
colorSecondary: theme.colors.error.main,
|
colorSecondary: theme.colors.error.main,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user