Skip to content

Incomplete themes data emitted with storybook/themes/REGISTER_THEMES message event #28963

Answered by Marklb
Olgagr asked this question in Help
Discussion options

You must be logged in to vote

It looks correct, based on the code.

addons.getChannel().emit(THEMING_EVENTS.REGISTER_THEMES, {
defaultTheme,
themes: themeNames,
});

That event emits generic theme data that should be the same if you are using any of the theme decorators. So it would not make sense to include the CSS class name in that event, because that is unique to that decorator.

You mentioned that the event should include the value, but the key is all you should need, because the value is an implementation detail that isn't important for specifying which theme that you want to use.

Instead of &globals=th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Olgagr
Comment options

Answer selected by Olgagr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants