From 3aaf0e644ad04437b0f5db25c809919d37420aa9 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 4 Dec 2020 09:13:38 +0000 Subject: [PATCH] Update stat card to use new component SDK --- .../userInterface/temporaryPanelStructure.js | 12 ----------- packages/standard-components/components.json | 4 +--- .../standard-components/src/CardStat.svelte | 21 ++++++++----------- 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 9e9ede545d..81b73d3204 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -454,18 +454,6 @@ export default { control: Input, placeholder: "Stripe", }, - { - label: "Value Color", - key: "color", - control: Input, - placeholder: "Blue", - }, - { - label: "Border Color", - key: "bordercolor", - control: Input, - placeholder: "lightgrey", - }, ], }, }, diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index 179ec1acbe..7504c15b40 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -262,9 +262,7 @@ "props": { "title": "string", "value": "string", - "label": "string", - "color": "string", - "bordercolor": "string" + "label": "string" } }, "cardhorizontal": { diff --git a/packages/standard-components/src/CardStat.svelte b/packages/standard-components/src/CardStat.svelte index cb58bdfb5a..e5e40ad862 100644 --- a/packages/standard-components/src/CardStat.svelte +++ b/packages/standard-components/src/CardStat.svelte @@ -1,20 +1,16 @@ -
+

{title}

{value}

{label}

@@ -25,8 +21,9 @@ min-width: 260px; width: max-content; max-height: 170px; - border: 1px solid var(--bordercolor); + border: 1px solid var(--grey-3); border-radius: 0.3rem; + color: var(--blue); } .title { @@ -39,8 +36,8 @@ .value { font-size: 2rem; font-weight: 500; - color: var(--color); - margin: 0rem 1.5rem 1.5rem 1.5rem; + margin: 0 1.5rem 1.5rem 1.5rem; + color: inherit; } .label {