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

Themes showing up in every addon tab #7

Closed
Impirioxus opened this issue Nov 3, 2018 · 4 comments
Closed

Themes showing up in every addon tab #7

Impirioxus opened this issue Nov 3, 2018 · 4 comments
Labels
good first issue Good for newcomers

Comments

@Impirioxus
Copy link

Themes are showing up at the bottom of every addon tab instead of just in the themes tab. Not sure if it's a bug or if I'm missing something. I managed to fix it by changing register.js and Themes.js but not sure if there's an easier way.

@echoulen
Copy link
Owner

echoulen commented Nov 3, 2018

change the import order in addons.js

@Impirioxus
Copy link
Author

I tried changing the import order but it still displays it in every addon tab. It will display it at the bottom of every tab that comes before it in addons.js and at the top of every tab that comes after it.

@echoulen
Copy link
Owner

echoulen commented Nov 4, 2018

can you post the picture about this?

@Impirioxus
Copy link
Author

This is my addons.js:

import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-viewport/register';
import '@storybook/addon-notes/register';
import 'storybook-addon-styled-component-theme/dist/register';
import '@storybook/addon-knobs/register';
import '@storybook/addon-a11y/register';
import '@storybook/addon-options/register';

I attached a picture of it at the top and at the bottom of an addon.
top
bottom

@echoulen echoulen added the good first issue Good for newcomers label Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants