1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Fix links not working in some components

This commit is contained in:
Andrew Kingston 2021-05-06 17:21:29 +01:00
parent a9b40db847
commit f30b52e283
2 changed files with 4 additions and 3 deletions

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 = ""
@ -41,6 +41,7 @@
<footer>
<p class="subtext">{subtext}</p>
<a
use:linkable
style="--linkColor: {linkColor}; --linkHoverColor: {linkHoverColor}"
href={linkUrl || "/"}>{linkText}</a
>

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 let imageUrl = ""
@ -13,7 +13,7 @@
</script>
<div class="container" use:styleable={$component.styles}>
<a href={destinationUrl}>
<a use:linkable href={destinationUrl}>
<div class="stackedlist">
{#if showImage}
<div class="image-block">