diff --git a/packages/materialdesign-components/components.json b/packages/materialdesign-components/components.json
index c0e79c511c..e62d30f5ef 100644
--- a/packages/materialdesign-components/components.json
+++ b/packages/materialdesign-components/components.json
@@ -24,6 +24,7 @@
},
"Button": {
"name": "Button",
+ "children": false,
"description": "A Material Design button with different variations. It renders as an anchor if href is passed to it.",
"props": {
"onClick": "event",
diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json
index d5e8320b93..3a50ed2470 100644
--- a/packages/standard-components/components.json
+++ b/packages/standard-components/components.json
@@ -142,7 +142,11 @@
"props": {
"url": "string",
"openInNewTab": "bool",
- "text": "string"
+ "text": "string",
+ "color": "string",
+ "hoverColor": "string",
+ "underline": "bool",
+ "fontSize": "string"
}
},
"image": {
@@ -179,7 +183,27 @@
"summary"
],
"default": "div"
+ },
+ "backgroundColor": "string",
+ "color": "string",
+ "borderWidth": "string",
+ "borderColor": "string",
+ "borderStyle": {
+ "type":"options",
+ "options": [
+ "none",
+ "solid",
+ "dotted",
+ "dashed",
+ "double",
+ "groove",
+ "ridge",
+ "inset",
+ "outset"
+ ],
+ "default": "none"
}
+
},
"container": true,
"tags": ["div", "container", "layout"]
diff --git a/packages/standard-components/src/Container.svelte b/packages/standard-components/src/Container.svelte
index 0951a03d65..9b9d47d3c0 100644
--- a/packages/standard-components/src/Container.svelte
+++ b/packages/standard-components/src/Container.svelte
@@ -1,49 +1,88 @@
{#if type === "div"}
-
+
{:else if type === "header"}
-
+
{:else if type === "main"}
-
+
{:else if type === "footer"}
-
+
{:else if type === "aside"}
-
+
{:else if type === "summary"}
-
+
{:else if type === "details"}
-
+
{:else if type === "article"}
-
+
{:else if type === "nav"}
-
+
{:else if type === "mark"}
-
+
{:else if type === "figure"}
-
+
{:else if type === "figcaption"}
-
+
{:else if type === "paragraph"}
-
+
{/if}
+
+
+
diff --git a/packages/standard-components/src/Link.svelte b/packages/standard-components/src/Link.svelte
index 9c48d1c302..c408f5d1c0 100644
--- a/packages/standard-components/src/Link.svelte
+++ b/packages/standard-components/src/Link.svelte
@@ -1,8 +1,14 @@
-{text}
+{text}
+
+
diff --git a/packages/standard-components/src/Test/props.js b/packages/standard-components/src/Test/props.js
index e492e6221b..b3cdeb0d08 100644
--- a/packages/standard-components/src/Test/props.js
+++ b/packages/standard-components/src/Test/props.js
@@ -21,6 +21,11 @@ export const form = {
{
_component: "@budibase/standard-components/container",
type: "paragraph",
+ backgroundColor: "red",
+ color: "white",
+ borderStyle: "solid",
+ borderWidth: "3px",
+ borderColor: "blue",
_children: [
{
_component: "@budibase/standard-components/text",
diff --git a/packages/standard-components/src/Test/testComponents.js b/packages/standard-components/src/Test/testComponents.js
index 641e95ecac..d6352ad3f3 100644
--- a/packages/standard-components/src/Test/testComponents.js
+++ b/packages/standard-components/src/Test/testComponents.js
@@ -1,3 +1,3 @@
-import { container, text, heading, input, select, option, button, login, nav, table } from "../index"
+import * as components from "../index"
-export default { container, text, heading, input, select, option, button, login, nav, table }
+export default components
diff --git a/packages/standard-components/src/button.svelte b/packages/standard-components/src/button.svelte
index 18572b91fc..2a23f82f0c 100644
--- a/packages/standard-components/src/button.svelte
+++ b/packages/standard-components/src/button.svelte
@@ -1,5 +1,5 @@