- {#if subject === "column"}
+ {#if subject === subjects.column}
- {:else if subject === "support"}
+ {:else if subject === subjects.support}
- {:else if subject === "stringsAndNumbers"}
+ {:else if subject === subjects.stringsAsNumbers}
- {:else if subject === "required"}
+ {:else if subject === subjects.notRequired}
{/if}
diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte
index b00d414613..e1952fd67d 100644
--- a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte
+++ b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte
@@ -1,5 +1,6 @@
@@ -9,8 +10,8 @@
No
setExplanationSubject("required")}
- on:mouseleave={() => setExplanationSubject(null)}
+ on:mouseenter={() => setExplanationSubject(subjects.notRequired)}
+ on:mouseleave={() => setExplanationSubject(subjects.none)}
text="required"
/>
diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/lines/StringNumber.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/lines/StringNumber.svelte
index ee304e32cc..b3499a9733 100644
--- a/packages/builder/src/components/design/settings/controls/FieldContext/lines/StringNumber.svelte
+++ b/packages/builder/src/components/design/settings/controls/FieldContext/lines/StringNumber.svelte
@@ -1,5 +1,7 @@
@@ -7,8 +9,8 @@
Any
setExplanationSubject("stringsAndNumbers")}
- on:mouseleave={() => setExplanationSubject(null)}
+ on:mouseenter={() => setExplanationSubject(subjects.stringsAsNumbers)}
+ on:mouseleave={() => setExplanationSubject(subjects.none)}
text="non-number values"
/>
diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Support.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Support.svelte
index 92f817af09..4fbfe87c76 100644
--- a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Support.svelte
+++ b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Support.svelte
@@ -1,5 +1,6 @@