fix linkable card

This commit is contained in:
Martin McKeaveney 2021-02-11 11:35:52 +00:00
parent 9dc94fbed6
commit 9b2b7ce3c8
1 changed files with 5 additions and 2 deletions

View File

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