-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug?]: Theming Storybook and having control descriptions in stories is broken #9373
Comments
Hi Ari, unfortunately I'm pretty sure it has a new way to set theme in preview or config file. I also think they change how to handle arg : |
Ah! Thanks for the reply @simoncrypta. Will look further into the new way to theme. On arg descriptions, what I put above is the correct way to do it in CSF3: https://storybook.js.org/docs/react/api/arg-types#manually-specifying-argtypes In fact, they're inferred correctly before you set up controls, and no longer included at all once you do. Before, with no argTypes specified: After, once you specify argTypes (so that controls can be used): This happens even if you only add one argType - it totally gets rid of the descriptions column. |
@arimendelow Did you have any luck with theming? And I know nothing about |
hi @Tobbe !! no luck on either fronts :( |
I'll assign this to Amy. She's busy with Advent of JS/CSS right now, so it'll probably be a while before she can start working on it, but at least it won't get lost this way |
@arimendelow Check that you have parameters: {
// https://docs.redwoodjs.com/docs/7.x/storybook#configuring-rendering-with-storybookpreviewjs
controls: { expanded: true },
} in your |
@Philzen ah good callout! This is actually an old bug from before the move to putting the RedwoodJS integration in a Storybook Framework Package. I'll close it out. |
What's not working?
There are two things I've encountered to be broken with Storybook:
Theming is totally broken
Put the following in
web/config/storybook/manager.js
:You'll see that no matter what you do, it does not affect Storybook.
Control descriptions are broken
In a story, you can have argTypes defined something like this:
You'll see that no matter what you put in
description
, it won't show up in Storybook.The text was updated successfully, but these errors were encountered: