fix(BOOK-771): Added spacing between content and cta wrapper in TeaserCard sidepeeks
Approved-by: Bianca Widstam
This commit is contained in:
@@ -47,12 +47,14 @@ export default function TeaserCardSidepeek({
|
|||||||
defaultMessage: "Close",
|
defaultMessage: "Close",
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
<div className={styles.content}>
|
||||||
{content ? (
|
{content ? (
|
||||||
<JsonToHtml
|
<JsonToHtml
|
||||||
nodes={content.json.children}
|
nodes={content.json.children}
|
||||||
embeds={content.embedded_itemsConnection.edges}
|
embeds={content.embedded_itemsConnection.edges}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
{primary_button || secondary_button ? (
|
||||||
<div className={styles.ctaContainer}>
|
<div className={styles.ctaContainer}>
|
||||||
{primary_button && (
|
{primary_button && (
|
||||||
<ButtonLink
|
<ButtonLink
|
||||||
@@ -77,6 +79,8 @@ export default function TeaserCardSidepeek({
|
|||||||
</ButtonLink>
|
</ButtonLink>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
</SidePeek>
|
</SidePeek>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,3 +6,8 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Space-x2);
|
gap: var(--Space-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--Space-x4);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user