-
Notifications
You must be signed in to change notification settings - Fork 573
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
Dialog: fix broken stories for Dialog v1 and v2 #4762
Conversation
|
size-limit report 📦
|
@@ -59,7 +60,12 @@ const components = docsFiles.map(docsFilepath => { | |||
const componentName = isComponentV2 ? `${docsName}v2` : docsName | |||
|
|||
// Get the default story id | |||
const defaultStoryId = `${storyPrefix[docs.status]}components-${componentName}--default` | |||
let defaultStoryId = `${storyPrefix[docs.status]}components-${componentName}--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.
I don't like this but couldn't think of another way to accommodate Dialog customisation. Let me know if you have any recommendation 🙌🏻
Because we have customisation for Dialog stories.
This is Dialog Alpha: https://primer.style/react/storybook/?path=/story/components-dialogv1--default&globals=colorScheme:light
This is Dialog Draft (What we recommend): https://primer.style/react/storybook/?path=/story/components-dialog--default&globals=colorScheme:light
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing