Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setConfig(theme) in manager.js theme definition not applied to addon-docs #9662

Closed
ndelangen opened this issue Jan 28, 2020 · 6 comments
Closed
Assignees
Milestone

Comments

@ndelangen
Copy link
Member

As discussed in:
#9498 (comment)

The new method for configuring theme in manager.js unfortunately means addon-docs doesn't receive the theme.

This can be quite disturbing when using dark-mode for example.

We should come up with a good method for sharing the theme / defining it once.

We also discussed to users might actually WANT different themes for manager & docs...

@shubjhamb
Copy link

setOptions also didn't work to set theme in docs, If we want to use setOptions in our custom addon to switch theme.

@shilman
Copy link
Member

shilman commented Feb 14, 2020

I think we should just set the docs theme independently in the preview, and update the documentation accordingly. WDYT @ndelangen ? If you're good with that solution I can update the documentation.

@ndelangen
Copy link
Member Author

Yeah that would work for me @shilman

@stale
Copy link

stale bot commented Mar 9, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@shilman
Copy link
Member

shilman commented Mar 12, 2020

ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.26 containing PR #10114 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Mar 12, 2020
@whatwg6
Copy link

whatwg6 commented Apr 9, 2020

😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants