Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Addon-Controls: Next-generation knobs #10834
Addon-Controls: Next-generation knobs #10834
Changes from 7 commits
dd858fd
8387dc5
8567226
e335539
3de277f
3d5b3ee
3dbb026
a8c4f56
6a844f7
9bd3c67
8e5fcf5
c509cc4
c9625ab
ca5d52a
3ca7acd
2cb04ea
d93976b
74d74e3
74246a3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Don't forget to add
import { Button } from './Button';
to this example tooThere 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.
It just makes the page much longer without providing informational value. WDYT?
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.
I'm not sure, the docs talk about automatic stuff and you're showing scenario A to B, where in scenario A you have an import and in scenario B you don't.. so it might be confusing for people without context. I'd say either:
1 - Remove the import from both, people can infer that the Button is coming from somewhere
2 - Make the text more specific like:
Rewrite the Basic story as:
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.
According to the (guidelines)[https://github.com/storybookjs/storybook/tree/next/docs#guidelines-for-writing-good-documentation] of Storybook, avoid the use of pronouns
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.
I disagree with that guideline
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.
Then I guess.. let's discuss about them and make them in a way that matches the preferred style so that anyone following them will be consistent with the rest of the documentation?
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.
I think there is a mixed message in this example, because not only you're adding the argTypes, but also there seems to be a new mechanic within the control API that translates perfectly the use case of
lodash/range
. Users who don't fit in this use case might either be confused about this change or get it and wonder what other types are availableThere 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.
Oops 👽
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.
Oops 👽