From 4f71f70053755e597bdc4ae03ebe45ecf04061e0 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 19 Jan 2021 14:00:15 +0100 Subject: [PATCH] switch method of applying color style --- packages/standard-components/src/Icon.svelte | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/standard-components/src/Icon.svelte b/packages/standard-components/src/Icon.svelte index 783411cc14..d175bfd6b0 100644 --- a/packages/standard-components/src/Icon.svelte +++ b/packages/standard-components/src/Icon.svelte @@ -6,11 +6,15 @@ export let icon = "" export let size = "fa-lg" - export let color = "#000" + export let color = "#f00" + $: styles = { + ...$component.styles, + normal: { + ...$component.styles.normal, + color + } +} -
- -
\ No newline at end of file + \ No newline at end of file