-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add paramKey: "chromatic"
to allow disabling the VTA panel through story parameters
#334
Conversation
@mellm0 Thanks for the contribution! What is your intention here? The If you'd expect snapshotting to be disabled for the story and have the panel disabled, then we could set @tmeasday WDYT? |
paramKey
to allow disabling the VTA panel through story parameters
My intention is simply to have the ability to hide the panel on certain stories, though its true this does coincide with also disabling chromatic snapshots for it. My specific scenario required me to create a story rather than a docs page since I wanted the themes, accessibility and other addons be available for a Sandbox we are creating for our design system. I only chose the Might be a breaking change for users who expect to still see the panel, but are using |
@mellm0 Sounds good. I think this is a legitimate use case so if you change We're looking at updating some backend code to make |
Updated 👍🏼 |
paramKey
to allow disabling the VTA panel through story parametersparamKey: "chromatic"
to allow disabling the VTA panel through story parameters
Thanks a lot @mellm0! I've updated the PR title and description to more clearly explain the update and how to use the parameter. |
Shipped in v1.8.0 🚀 |
Configures the addon's
paramKey
, so that disabling this parameter will disable the Visual Tests panel in Storybook for a specific story:Similarly, this can be set on
meta
instead to disable the VTA for all stories in the file.The key is set to
chromatic
because this will cause Chromatic to skip the story when snapshotting. If you want to disable snapshotting without disabling the addon panel, you can use thedisableSnapshot: true
parameter instead.