Skip to content
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

Preview: Don't hide the story while preparing #16850

Merged
merged 1 commit into from Dec 1, 2021
Merged

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Dec 1, 2021

Issue: #16847, #16798

What I did

Removed the code to hide the story while not "showing" (see this comment).

Note the original code:

:not(.sb-show-main) > .sb-main

Did not apply to anything, so I didn't put it back. There is .sb-main-padded, etc for the different layouts, but there is no sb-main-x class for when you have no layout (the default).

How to test

  1. Open a preview, remove sb-show-main, add sb-show-preparing-story or sb-show-preparing-docs to the body. Check the story is not visible.
  2. Run examples/vue-kitchen-sink, visit http://localhost:9009/?path=/docs/addon-actions--action-only (for [Storybook 6.4] [Vue] [addon-docs] Stories are hidden in docs tab #16798)

@nx-cloud
Copy link

nx-cloud bot commented Dec 1, 2021

Nx Cloud Report

CI ran the following commands for commit 0c79c53. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! what's the difference between putting it in the head vs the body?

@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Dec 1, 2021
@shilman shilman changed the title Don't hide the story while preparing Preview: Don't hide the story while preparing Dec 1, 2021
@shilman shilman merged commit 1e2be25 into next Dec 1, 2021
@shilman shilman deleted the 16847-do-not-hide-story branch December 1, 2021 06:00
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Dec 1, 2021
shilman added a commit that referenced this pull request Dec 1, 2021
Preview: Don't hide the story while preparing
@tmeasday
Copy link
Member Author

tmeasday commented Dec 1, 2021

Nothing, just moved it there for consistency with the other css for this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants