You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to be able set the preview iframe into a given global args state. This was possible using addon-controls as it passed values into preview iframe's querystring. However it is not clear how to do that with addon-toolbars / global args.
I want to use chromatic/percy to screenshot a story with different values for global args. This would be useful for visual regression testing a story using multiple multiple themes. (disclaimer: this is currently hypothetical but I've raised feature requests).
I want to pass a list of story preview iframe urls into acessibility checking tools to check that my themes pass contrast checks etc (I am doing this currently).
A mechanism to load the preview iframe with a particular global args configuration. At its most simplistic, this could be done by storing the serialised state in a query string parametes, though this may have some limitations depending on if global args can be serialized.
Rather than generalising to all global args this could be limited to just defining an initial addon-toolbars state in the same way as how addon-controls sets the contexts query param as I think that should all be stringy. This would solve my particular use case.
Are you able to assist bring the feature to reality?
no
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to be able set the preview iframe into a given global args state. This was possible using addon-controls as it passed values into preview iframe's querystring. However it is not clear how to do that with addon-toolbars / global args.
I want to use chromatic/percy to screenshot a story with different values for global args. This would be useful for visual regression testing a story using multiple multiple themes. (disclaimer: this is currently hypothetical but I've raised feature requests).
I want to pass a list of story preview iframe urls into acessibility checking tools to check that my themes pass contrast checks etc (I am doing this currently).
In storybook 5.3 I can use addon-controls to create a toggle between different visual themes
However when trialing v6 and replacing my addon-controls usage with addon-toolbars, there doesn't seem to be an equivalent functionality for global args.
Describe the solution you'd like
A mechanism to load the preview iframe with a particular global args configuration. At its most simplistic, this could be done by storing the serialised state in a query string parametes, though this may have some limitations depending on if global args can be serialized.
Rather than generalising to all global args this could be limited to just defining an initial addon-toolbars state in the same way as how addon-controls sets the
contexts
query param as I think that should all be stringy. This would solve my particular use case.Are you able to assist bring the feature to reality?
no
The text was updated successfully, but these errors were encountered: