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

Action add-on position #9829

Closed
maciekgrzybek opened this issue Feb 12, 2020 · 3 comments
Closed

Action add-on position #9829

maciekgrzybek opened this issue Feb 12, 2020 · 3 comments

Comments

@maciekgrzybek
Copy link

Is your feature request related to a problem? Please describe.
I am building a mini-component that uses Intersection Observer API. The action-addon is 'breaking' the functionality of the demo, as it's covering the bottom of the screen, so the Observer callback doesn't fire when an element is in the viewport. I still want to use that addon, but I wish there was a config option to move the addon to the right instead of the bottom.

Describe the solution you'd like
I want to use the current functionality that changes the addon position and extend it, so when setting up Storybook I can pass the correct config option.

Are you able to assist bring the feature to reality?
Yes, I am happy to work on this.

@shilman
Copy link
Member

shilman commented Feb 12, 2020

Try adding the following to manager.js:

import { addons } from '@storybook/addons';

addons.setConfig({
  panelPosition: 'right',
  theme,
});

@maciekgrzybek
Copy link
Author

maciekgrzybek commented Feb 12, 2020

@shilman thanks for that 😄 is it anywhere in the Docs? I couldn't find it. Also, where that manager file should go?

@maciekgrzybek
Copy link
Author

Nevermind, found it all :) Thanks again for help!

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

2 participants