-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: add support for display text in links #1431
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.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.
LGTM 🚀 Left only some minor suggestions
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Outdated
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Outdated
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.
left some comments
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/Form.jsx
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/Form.jsx
Outdated
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Outdated
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Outdated
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.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.
Just tested the alpha and saw that the default value for "Allow display text" is false where it should be true by default.
Done ✅ |
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/Form.jsx
Show resolved
Hide resolved
packages/slice-machine/src/legacy/lib/models/common/widgets/Link/components.tsx
Show resolved
Hide resolved
checked={Boolean(text)} | ||
onChange={(event) => { | ||
void setFieldValue( | ||
"config.text", | ||
event.target.checked ? { type: "Text" } : undefined, | ||
); | ||
}} |
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.
nice 👍
support link text with boolean config
# Conflicts: # package.json # packages/slice-machine/package.json # yarn.lock
Use link text in adapters
Resolves: DT-2256
Description
Adds support for the display text property in link fields.
Checklist
Preview
How to QA 1
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩