-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Storybook: update doc param values for ConfirmDialog #54130
Conversation
Size Change: 0 B Total Size: 1.51 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I was just about to submit a similar PR 😄
- According to the documentation, the default value seems to be true, so I think removing the format property is not a problem.
- In addition, it may be a good idea to fix this indentation:
gutenberg/packages/components/src/confirm-dialog/stories/index.story.js
Lines 103 to 105 in 3b114f7
</> ); };`;
Some light formatting of default example code
d38ee1c
to
317fa38
Compare
I left it in just in case the original author wanted to communicate it explicitly, but I guess it's fine to remove. Done!
No worries!
Ha, sorry! You are usually too fast! 🚤 Thank you for looking over it. 🙇🏻 |
Flaky tests detected in 317fa38. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6066797893
|
Going to merge this. Doesn't affect core plugin functionality and addresses the storybook bug |
Fixes #54123
What?
Just updating storybook doc format value with boolean in the
<ConfirmDialog />
component. Formerly it was a string.Why?
Storybook was throwing an error:
Uncaught Error: Couldn't resolve parser "true". Parsers must be explicitly added to the standalone bundle.
Testing Instructions
Run
npm run storybook:dev
and head to:http://localhost:50240/?path=/docs/components-experimental-confirmdialog--docs
You should see the docs page.