-
Notifications
You must be signed in to change notification settings - Fork 216
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
Convert VContentLink
story to MDX
#1062
Convert VContentLink
story to MDX
#1062
Conversation
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.
The stories are great!
One change request here is to replace all instances of VContentList
with VContentLink
.
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.
Awesome, thank you for your contribution, @sepehrrezaei !
9c61ad9
to
29802be
Compare
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 is really good! Thank you @sepehrrezaei. I do have some minor suggestions though.
|
||
<ArgsTable of={VContentLink} /> | ||
|
||
## Default VContentLink |
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.
Nit: VContentLink
is implied here.
## Default VContentLink | |
## Default |
<ArgsTable of={VContentLink} /> | ||
|
||
## Default VContentLink | ||
|
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.
Optional for this PR: a little description about each variant would be nice.
</Canvas> | ||
|
||
## Mobile VContentLink | ||
|
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.
Please include a note that this story should be viewed in the Canvas tab. I was a bit confused when the "mobile" story was same as the desktop one when seen in the Docs tab.
<Story | ||
name="Mobile" | ||
parameters={{ | ||
viewport: { defaultViewport: "xs" }, |
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 is a nice touch, thanks!
|
||
import VContentLink from "~/components/VContentLink/VContentLink.vue" | ||
|
||
<Meta title="Components/VContentLink" components={VContentLink} argTypes={{}} /> |
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.
<Meta title="Components/VContentLink" components={VContentLink} argTypes={{}} /> | |
<Meta title="Components/VContentLink" component={VContentLink} /> |
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.
Approving, shelving the recommended changes for future improvements.
VContentLink
story to MDX
Fixes
Related to #584 by @dhruvkb
Description
This PR updates the story of VContentLink to use the composition API (MDX). Here is the screenshot of the converted VContentLink to MDX in the storybook:
Testing Instructions
Run the Storybook from this PR to see that VContentLink is working properly in the storybook.
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin