1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

fix linkable card

This commit is contained in:
Martin McKeaveney 2021-02-11 11:35:52 +00:00
parent f615eef155
commit 768d87ec62

View file

@ -1,7 +1,7 @@
<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const { styleable, linkable } = getContext("sdk")
const component = getContext("component")
export const className = ""
@ -38,8 +38,11 @@
<h2 class="heading">{heading}</h2>
<h4 class="text">{description}</h4>
<a
use:linkable
style="--linkColor: {linkColor}; --linkHoverColor: {linkHoverColor}"
href={linkUrl}>{linkText}</a>
href={linkUrl}>
{linkText}
</a>
</div>
</div>