diff --git a/packages/builder/src/components/design/settings/controls/CellConditionEditor.svelte b/packages/builder/src/components/design/settings/controls/CellConditionEditor.svelte
index eb7e70f887..5f19739f9d 100644
--- a/packages/builder/src/components/design/settings/controls/CellConditionEditor.svelte
+++ b/packages/builder/src/components/design/settings/controls/CellConditionEditor.svelte
@@ -24,6 +24,16 @@
const dispatch = createEventDispatcher()
const flipDuration = 130
+ const conditionOptions = [
+ {
+ label: "Update background color",
+ value: "backgroundColor",
+ },
+ {
+ label: "Update text color",
+ value: "textColor",
+ },
+ ]
let tempValue = []
let drawer
@@ -57,6 +67,7 @@
const addCondition = () => {
const condition = {
id: generate(),
+ metadataKey: conditionOptions[0].value,
operator: Constants.OperatorOptions.Equals.value,
valueType: FieldType.STRING,
}
@@ -132,10 +143,15 @@
>
- Set background color to
+
+ to
(condition.color = e.detail)}
+ value={condition.metadataValue}
+ on:change={e => (condition.metadataValue = e.detail)}
/>
if value