-
Notifications
You must be signed in to change notification settings - Fork 428
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
fix: create integration copy + layout updates #7787
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@@ -61,9 +61,7 @@ export function CreateLinkedDocumentBannerContent(props: CreateLinkedDocumentBan | |||
</Flex> | |||
<Stack space={4}> | |||
<Heading size={2}>{t('create-link-info-popover.header')}</Heading> | |||
<Text size={1}> | |||
<Translate t={t} i18nKey={'create-link-info-popover.text'} /> |
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.
No longer using the Translate
component as the create-link-info-popover.text
resource no longer contains markup
No changes to documentation |
@@ -96,7 +96,8 @@ export function CreateLinkedDocumentBannerContent(props: CreateLinkedDocumentBan | |||
icon={InfoOutlineIcon} | |||
mode="bleed" | |||
onClick={toggleOpen} | |||
style={{marginBottom: '-1em', marginTop: '-1em'}} | |||
// Negative margins added to prevent the button from blowing out banner height | |||
style={{marginBottom: '-0.5em', marginTop: '-0.5em'}} |
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.
Incredibly minor tweak which just ensures the button is the correct size on hover.
|
||
<Flex flex={1} justify="flex-end" gap={2}> | ||
<Button | ||
mode="bleed" | ||
text={t('unlink-from-create-dialog.cancel.text')} | ||
onClick={onClose} | ||
/> | ||
<Button | ||
tone="primary" | ||
text={t('unlink-from-create-dialog.unlink.text')} | ||
onClick={unlink} | ||
disabled={unlinking} | ||
/> | ||
</Flex> |
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.
We now defer layout rendering to the component itself
<StartInCreateDialog | ||
content: <StartInCreateActionContent />, | ||
footer: ( | ||
<StartInCreateActionFooter |
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.
Similarly, we separate document action content and footer to ensure it renders a little more closely to what you see in the studio elsewhere
packages/sanity/src/core/form/inputs/PortableText/object/BlockObject.tsx
Show resolved
Hide resolved
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.
Similar to above, these Create specific data attrs are no longer needed
Component Testing Report Updated Nov 11, 2024 10:37 AM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Mon, 11 Nov 2024 10:43:09 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
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.
Great, thanks for this 🙏
* next: fix: create integration copy + layout updates (#7787)
Description
This PR introduces some very minor copy and layout updates to the existing Studio → Create integration. All changes are purely cosmetic.
What to review
footer
prop (as opposed to rendering these within the dialog body)Testing
N/A – copy and minor layout tweaks only
Notes for release
Not required