-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Docs: Refactor props of Story block #20530
Conversation
@JReinhold as I looked at the stories for these blocks (we should look at these stories together), I discovered this PR drops one piece of functionality from the How it works currently (on
This is pretty obtuse, probably it would be better if instead:
Let's have a chat about this. |
I see, that's not an ideal API. |
Ok, I think this is good now @JReinhold. There was some confusion around |
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.
Looks good!
What's stopping us from using useOf
in the Story block for consistency? I could imagine that the nature of the Story block and still supporting the deprecations would make it unwieldy to use. Or is it because you built this before the useOf
was merged? Either way it's okay to me.
@@ -51,7 +51,7 @@ export const SimpleSizeTest: Story = { | |||
style={{ |
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.
When changing the stories from Boolean Control to Button I missed the one that uses id
above on line 33. could you change it?
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.
Done. Although should this be in an internal story file do you think?
It was just that code was already written in the PR that added |
@JReinhold -- what shall we do with the unaccepted changes here? They are stories that are currently broken due to the discussion here: #20530 (comment) -- shall we accept them as is or disable them for now? |
Let's accept them, otherwise they'll spring up in other unrelated PRs and confuse the team. |
Ok, they are accepted but hopefully you can fix them reasonably quick, I'm not super comfortable with having stories that are just wrong. |
I'll update the |
Breaking prelease change: This changes the
docs.autoplay
parameter todocs.story.autoplay
Issue: N/A
What I did
Story
block/component that was long overdue.How to test