diff --git a/packages/standard-components/src/Heading.svelte b/packages/standard-components/src/Heading.svelte index 7cb7ed79d8..9e8e361a24 100644 --- a/packages/standard-components/src/Heading.svelte +++ b/packages/standard-components/src/Heading.svelte @@ -14,7 +14,7 @@ $: placeholder = $builderStore.inBuilder && !text $: componentText = $builderStore.inBuilder - ? text || "Placeholder text" + ? text || $component.name || "Placeholder text" : text || "" // Add color styles to main styles object, otherwise the styleable helper diff --git a/packages/standard-components/src/Text.svelte b/packages/standard-components/src/Text.svelte index 2e3b2954fc..cc087324d6 100644 --- a/packages/standard-components/src/Text.svelte +++ b/packages/standard-components/src/Text.svelte @@ -14,7 +14,7 @@ $: placeholder = $builderStore.inBuilder && !text $: componentText = $builderStore.inBuilder - ? text || "Placeholder text" + ? text || $component.name || "Placeholder text" : text || "" // Add color styles to main styles object, otherwise the styleable helper