Linked cards: drop the in-card hint label — the whole card is the link, hover already affords it (link_label fields retired from pages, CMS config and preview)
deploy / build-and-publish (push) Successful in 40s
deploy / build-and-publish (push) Successful in 40s
This commit is contained in:
1 parent
20abb13cbc
commit
4069fae97c
6 files changed
+3
-20
No files matched your search
@@ -66,8 +66,7 @@ collections:
|
||||
fields:
|
||||
- { label: Heading, name: heading, widget: string }
|
||||
- { label: Text, name: text, widget: text }
|
||||
- { label: Link (page path, e.g. /for-founders/), name: link, widget: string, required: false }
|
||||
- { label: Link label (empty = "Read more"), name: link_label, widget: string, required: false }
|
||||
- { label: Link (page path, e.g. /for-founders/ — makes the whole card a link), name: link, widget: string, required: false }
|
||||
- { label: Cards section heading, name: value_props_title, widget: string, required: false }
|
||||
- label: Journey steps (optional)
|
||||
name: journey
|
||||
|
||||
@@ -114,8 +114,7 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
|
||||
html`<div class="pv-card" data-key-path={`value_props.${i}.heading`} tabindex="0">
|
||||
<strong>${v.get("heading")}</strong>
|
||||
<small>${v.get("text")}</small>
|
||||
${v.get("link") &&
|
||||
html`<span class="pv-link">→ ${v.get("link_label") || "Read more"}</span>`}
|
||||
${v.get("link") && html`<span class="pv-link">→</span>`}
|
||||
</div>`,
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user