[Bug]: showPanel: false
not working (v8.0.0-beta.0
)
#25913
-
Describe the bug
import { addons } from "@storybook/manager-api";
import { create } from "@storybook/theming/create";
addons.setConfig({
showPanel: false,
theme: create({
base: "dark",
}),
}); After upgrading to I still get a dark theme, which indicates To Reproducehttps://stackblitz.com/edit/github-izp6au-fo1t1m?file=.storybook%2Fmanager.ts StackBlitz takes about a year to run Storybook, but the issue does reproduce. You'll have to open up the right pane wide enough to confirm. SystemNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@aaronadamsCA thanks for trying out Storybook 8 beta! Indeed, starting from Storybook 8, |
Beta Was this translation helpful? Give feedback.
-
I followed the bug report to this discussion and the new API is not working for me. I set Second, the API is somewhat inconsistent, no? I can set: export default {
// ...
parameters: {
options: {
rightPanelWidth: 200,
bottomPanelHeight: 350
}
}
}; "Oh yes, please do both!" - I assume some field takes precedence but that is not visible to the user as per API. A more prescriptive API is this: export default {
// ...
parameters: {
options: {
panelSize: 200, // similar to flex-basis
panelPosition: 'right'
}
}
}; I would make it: panelSize: number | boolean;
And for most stories I've written I actually didn't care that much about the size. This API would benefit both use-cases, while giving guarantees about what is actually happening. |
Beta Was this translation helpful? Give feedback.
@aaronadamsCA thanks for trying out Storybook 8 beta! Indeed, starting from Storybook 8,
showPanel
is no longer a valid option. It has instead been split out tobottomPanelHeight: number
andrightPanelWidth: number
, where the numbers represents the size of the panel in pixels. Here is the relevant migration notes section, and the API docs.