-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Controls is not visible/shown in canvas/addons (only in docs) #12481
Comments
This section of the docs assumes that you've installed |
Chore: Docs updates for issue #12481
@pixelass sorry for taking a bit more time. I've just merged a pull request to address the issue. Going to close this if you don't mind. If further developments arise. Leave a comment here and reopen the issue and we'll continue on working the issue. Stay safe |
@jonniebigodes thanks for the help so far. I'll check it out. |
Chore: Docs updates for issue #12481
Hey love Storybook. Much love. Buuuuuut... It's March 2021 and i've hit the same issue^^ 😂 I feel like it should state clearly in the controls documentation that you need to adjust config to use this feature, or update, or "If you cannot see the controls panel, make sure you have upgraded to the latest version of Storybook / installed 'essentials' etc " Happy to raise a PR if you have a link to the docs or something. x |
@Aid19801 |
None of the controls docs nor this issue mentions the shortcut A to hide and show the panels as mentioned here. Even starting storybook ( cc: @shilman |
@nickofthyme on it #13646 cc @MichaelArestad |
Having same issue. Controls not showing. They work in Edge but not in Chrome |
@olegKusov does pressing a toggle the controls panel to show? |
What solved it for me was to:
After toggling the panel position twice the panel appeared at the bottom and stayed there. |
Sorry for the edgy joke, but this illustrates my whole experience with this. Installing and enabling it to work was almost unbearable. I spent exactly 6h14 trying to fix a mismatch version over one of my systems. Lots of bad error messages, lots of webpack problems, lots of dependency issues. |
I had the same issue that the Actions/Controls area never shows up. After toggling 'change addon orientation' the actions and controls tab shows up again. The issue can be reproduced by reducing the storybook window height (resize browser window) to the point where there is no remaining space in the Canvas/Docs tab. At this point the Actions/Controls area disappears. If the Action/Controls area is large to begin with it doesn't take much resizing to make this happen. I speculate that the internal persisted height of the Actions/Control area is too large to begin with (or maybe 0) causing it never to show up. @jonniebigodes Maybe reopen this issue as the problem still exists and it is now reproducible. (assuming this is the same issue) |
I think there is a likely more durable solution where we add a minimum height to the panel so that it can never completely disappear. I occasionally encounter this when working with the panel and dev tools. |
@dsasko's post was very helpful. It seems that something happened (a height change?), and the controls were made to hide, but adjusting the height again did not restore the controls. Maybe I missed it, but I could not see any indicator/icon to show that the controls were hidden. But great product, and I am enjoying using it. |
Great product, but there needs to be a UI button equivalent of pressing "a" so that I don't have to Google for this issue every time my controls vanish. |
Wasted multiple hours on this thinking that Found this thread, toggled orientation and the controls suddenly appeared... 🤦 |
@MichaelArestad can we show some UI when the addons panel is hidden, similar to what we did for the sidebar in #15369 |
@shilman maybe this issue could be re-opened until something like what you suggested is implemented? |
Terrible UX for such basic features. But thanks to your answer this is what worked for me as well 👍🏼 |
I run into this issue today, on macOS and latest Chrome. I solved it by opening the devtools and deleting the storybook related local storage entries. |
@krzysztofradomski cant believe this was it haha. Same exact thing for me. Clearing localStorage did the trick |
Is there a way to just define the behavior of the controls and override the localStorage values? I'd like to be able to define whether it's show, position, and size of the panel for each story. |
@krzysztofradomski that fixed it for me too, I guess it was resized to a position that it couldn't be restored after a page refresh. Perhaps a bug? |
Had the same problem. Cleared local storage entries -> fixed. Now upgraded to 6.5.7 and the addons are gone again. Hotkeys do work, but toolbar does not show addon controls. Clearing local storage does not bring addons back. |
Upgraded to 6.5.8 -> no fix. Changed configuration -> i can finally work now addons: [
+ '@storybook/addon-viewport',
+ '@storybook/addon-controls',
+ '@storybook/addon-outline',
- {
- name: '@storybook/addon-essentials',
- options: {
- docs: false,
- background: false,
- actions: false,
- controls: true,
- },
- },
], |
facing a similar issue on 6.4.20 In the canvas tab, the addons panel is visible, but the controls panel is not visible |
For me, using the dropdown next to the Storybook logo and choosing 'Show addons' worked, but it placed the panel on the right side of the screen. In the menu at the top of that panel, there's an option to place it across the bottom of the screen -- the same way you can relocate browser dev tools. Now I'm seeing the Actions, Interactions and Controls just fine in Chrome, Firefox and Edge. |
After upgrading to 7.0 beta, controls disappeared.
That option was already checked... so I clicked "change addons orientation" and it finally appeared. 👀 |
The browser height also causes these to disappear. Perhaps that should not happen? :) |
It worked on me 👍 |
This is an interesting bug. I'm not sure how to reproduce this, but I'll describe Storybook's behavior to hopefully give a little more insight. I'm using Storybook 7.5.2. I should add that I restarted storybook multiple times in between closing it intially and trying to get it back. |
Yes, it's a bug still present in To fix it, go to the browser Developer Tools > |
Describe the bug
I added controls to my story but it only shows in the
docs
tab not on thecanvas/addons
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As a user I expect the controls tab to be visible after following this guide
Screenshots
canvas
docs
Code snippets
STORY
CONFIG
.storybook/main.js
.storybook/manager.js
.storybook/preview.js
.storybook/theme.js
System:
Additional context
The text was updated successfully, but these errors were encountered: