1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

retains icons design panel options while being able to change color in settings panel

This commit is contained in:
kevmodrome 2021-01-19 13:42:49 +01:00
parent cbaffe798a
commit f04063c26b

View file

@ -1,15 +1,16 @@
<script>
import { getContext } from "svelte"
// Add this back once we can define specific design options to expose
// const { styleable } = getContext("sdk")
// const component = getContext("component")
const { styleable } = getContext("sdk")
const component = getContext("component")
export let icon = ""
export let size = "fa-lg"
export let color = "#000"
</script>
<i
style={`color: ${color};`}
class={`${icon} ${size}`} />
<div style="color: {color}; display: contents">
<i
use:styleable={$component.styles}
class="{icon} {size}" />
</div>