-
Notifications
You must be signed in to change notification settings - Fork 114
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: create visual picker docs #3370
Conversation
Run & review this pull request in StackBlitz Codeflow. |
🦋 Changeset detectedLatest commit: 2cd63ec The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 2cd63ec. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Size Change: +76 B (0%) Total Size: 1.02 MB
ℹ️ View Unchanged
|
packages/paste-website/src/pages/components/visual-picker/index.mdx
Outdated
Show resolved
Hide resolved
98aa375
to
7f1eba7
Compare
✅ Deploy Preview for paste-theme-designer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2cd63ec:
|
✅ Deploy Preview for paste-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
1 flaky tests on run #6504 ↗︎
Details:
cypress/integration/sitemap-vrt/batch2.spec.ts • 1 flaky test • Paste Actions with VRT Parallel
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
3dd59c7
to
d475d3e
Compare
packages/paste-website/src/pages/components/visual-picker/index.mdx
Outdated
Show resolved
Hide resolved
packages/paste-website/src/pages/components/visual-picker/index.mdx
Outdated
Show resolved
Hide resolved
packages/paste-website/src/pages/components/visual-picker/index.mdx
Outdated
Show resolved
Hide resolved
packages/paste-website/src/pages/components/visual-picker/index.mdx
Outdated
Show resolved
Hide resolved
f2132c9
to
e02f700
Compare
packages/paste-website/src/component-examples/VisualPickerExamples.ts
Outdated
Show resolved
Hide resolved
packages/paste-website/src/component-examples/VisualPickerExamples.ts
Outdated
Show resolved
Hide resolved
: null | ||
marginRight={orientation === 'horizontal' && !isVisualPicker ? 'space70' : null} | ||
marginLeft={ | ||
isVisualPicker && orientation === 'horizontal' ? (index === 0 ? 'space0' : 'space30') : 'space0' // Sets spacing between horizontal Visual Pickers except for the first one |
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.
praise: you're right, I do dislike this, but the comments here, as to why its here, helps us reason about this and ultimately we might find time to refactor this out to a better primitive in the future.
...props | ||
}, | ||
ref | ||
) => { | ||
const isVisualPicker = Boolean(fieldStyleProps); // This prop is only used in Visual Picker |
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.
suggestion: prefer an existence check like fieldStyleProps != null
instead of a type coercion
No description provided.