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

Discrepancies in code view on Docs Pages #21

Open
stephiescastle opened this issue Sep 23, 2021 · 1 comment
Open

Discrepancies in code view on Docs Pages #21

stephiescastle opened this issue Sep 23, 2021 · 1 comment
Labels
storybook This issue relates to Storybook.js

Comments

@stephiescastle
Copy link
Member

stephiescastle commented Sep 23, 2021

Capturing a known issue that only happens on Docs Pages (not canvas view):

When viewing a story canvas within a Docs page, there is a button on the bottom right of the embedded canvas to "Show code". We are getting mixed behavior here:

  • will show the story decorator (undesirable, but there may not be a way to fix this)
  • sometimes shown as "code unavailable"
@stephiescastle stephiescastle added the storybook This issue relates to Storybook.js label Sep 23, 2021
@stephiescastle
Copy link
Member Author

stephiescastle commented Jul 28, 2022

will show the story decorator (undesirable, but there may not be a way to fix this)

Considering setting a standard to wrap all templates in <!-- Start Component--><!-- End Component --> for clarity on what to copy and paste. It's a bit redundant on canvas view, but helps clarify templates in docs view when the story decorator is shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storybook This issue relates to Storybook.js
Projects
None yet
Development

No branches or pull requests

1 participant