Skip to content

♻️Migrate Stories 40..44 to args#37729

Merged
rbeckthomas merged 7 commits intoampproject:mainfrom
rbeckthomas:remove-knobs
Mar 7, 2022
Merged

♻️Migrate Stories 40..44 to args#37729
rbeckthomas merged 7 commits intoampproject:mainfrom
rbeckthomas:remove-knobs

Conversation

@rbeckthomas
Copy link
Copy Markdown
Contributor

Partial for #35923.

@amp-owners-bot amp-owners-bot bot requested a review from rsimha February 18, 2022 04:42
@rbeckthomas rbeckthomas changed the title ♻️Migrate Stories 40..44 to args ♻️Migrate Stories 40..44 to args Feb 18, 2022
@@ -72,20 +71,15 @@ export const WithUl = () => {

WithUl.storyName = 'with <ul>';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this. It's used to describe the story in more detail if needed, but in most cases in our storybook tests, it's the same as the test name.

side: {
name: 'side',
defaultValue: 'left',
options: ['left', 'right', undefined],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be undefined or can be none?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case it needs to be undefined so that the size attr is not set. Setting size='none' does not trigger the correct behavior.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can u add this explanation as a comment so its not confusing why undefined is one of the options.

const backgroundColor = color('background');
const backdropColor = color('backdrop color');

export const _default = ({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: rename to Default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants