-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
♻️Migrate Stories 62..65 to args
#37730
Conversation
Remove disabled stories, and all its uses and remove storybook allowlist.
Hey @alanorozco! These files were changed:
|
args
:wargs
@rebeccanthomas: is this ready for review? |
Ah, Not yet. This is blocked pending the merges of the other story migration. Sorry about that! |
src/preact/storybook/Wrappers.js
Outdated
aria-label={ariaLabel} | ||
{...args} |
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.
args
contains some of the same properties that are passed in. Perhaps you want to do:
<ContainWrapper {...args} as={asProp} class={className} ...
may be a part of the args.
defaultValue: {border: '1px solid', width: 200, height: 50}, | ||
control: {type: 'object'}, | ||
}, | ||
wrapperStyle: { |
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.
does this need the default value of {padding: 4}
?
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.
ah yes! thank you :)
}; | ||
|
||
const IMG_SRC = | ||
"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24px' height='24px' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"; | ||
|
||
const LOADING_OPTIONS = ['auto', 'lazy', 'eager', 'unload']; | ||
|
||
export const _default = () => { |
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.
FMI: why is this named _default? Does that do something?
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.
As a convention we name the first story _default
to make it clear its one that gets default selected when you navigate to the story. It doesnt do anything special in the storybook its more just for us
the default
on line 9/6 That one does some storybook internal magic and is important to be named that way
Partial for #35923.
This PR also removes the allowlist for the usage of
@storybook/addon-knobs
and references to it.