-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Badge component: Fix Storybook url link #68077
Conversation
@@ -48,4 +48,3 @@ export function generateMarkdownPropsJson( props, { headingLevel = 2 } = {} ) { | |||
|
|||
return [ { [ `h${ headingLevel }` ]: 'Props' }, ...propsJson ]; | |||
} | |||
|
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.
This change is to fix a warning in prettier (Two newlines).
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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 @t-hamano 🙌
What?
Fix an issue where the Storybook link in the
Badge
component README was not linking to an actual story:426f038b3403e90168cd5227bcee5686.mp4
Why?
This is because the URL rules are different when automatically generating a README and when using Storybook.
How?
By adding an
id
field to the storybook meta, change the story URL of theBadge
component as follows:Testing Instructions
Testing Instructions for Keyboard
npm run storybook:dev
Badge
component should behttp://localhost:50240/?path=/docs/components-badge--docs
.