From 7f405e7dd9d18ffd54a5e7b347b8146d511d560f Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 19 Jan 2021 13:42:49 +0100 Subject: [PATCH 1/2] retains icons design panel options while being able to change color in settings panel --- packages/standard-components/src/Icon.svelte | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/standard-components/src/Icon.svelte b/packages/standard-components/src/Icon.svelte index 643b07836a..783411cc14 100644 --- a/packages/standard-components/src/Icon.svelte +++ b/packages/standard-components/src/Icon.svelte @@ -1,15 +1,16 @@ - +
+ +
\ No newline at end of file From 6cbca0aab9882ae33b50d7e9e6608da6b2dc76df Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 19 Jan 2021 14:00:15 +0100 Subject: [PATCH 2/2] 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