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
Select "Clear background", the querystring becomes ...&globals=backgrounds.value:transparent
Go the Gradient story (1 step above in the tree)
The background of the Gradient story is still cleared instead of the default "gradient" background because the querystring still contains ...&globals=backgrounds.value:transparent
I agree that the title of this issue can be confusing. It's not about the "Clear background" option being wrong, it's about a "Reset background (to default)" option that's missing.
And combined with the weird behavior that the background is carried over to other stories if it is available, but resets to the default background when it's not available in a story. Which we cannot use as a workaround, because we cannot remove the "Clear background" option from the available backgrounds in a story.
This is still an issue in storybook 8. There is still no "Reset background" option (as in reset the background to the default of the story).
https://next--630511d655df72125520f051.chromatic.com/?path=/story/addons-backgrounds-parameters--image
...&globals=backgrounds.value:transparent
...&globals=backgrounds.value:transparent
I agree that the title of this issue can be confusing. It's not about the "Clear background" option being wrong, it's about a "Reset background (to default)" option that's missing.
And combined with the weird behavior that the background is carried over to other stories if it is available, but resets to the default background when it's not available in a story. Which we cannot use as a workaround, because we cannot remove the "Clear background" option from the available backgrounds in a story.
Originally posted by @WesselKroos in #14030 (comment)
The text was updated successfully, but these errors were encountered: