diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 1e28fa5b77..ae428ef763 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -101,7 +101,7 @@
  • addToText(helper.text)}>
    - {@html helper.description} +
    {@html helper.description}
  • {/each} @@ -192,4 +192,16 @@ color: var(--red); text-decoration: underline; } + + .description :global(p) { + color: var(--grey-7); + } + + .description :global(p:hover) { + color: var(--ink); + } + + .description :global(p a) { + color: var(--grey-7); + } diff --git a/packages/string-templates/test/basic.spec.js b/packages/string-templates/test/basic.spec.js index dc5e4bb9ac..7edf89c6c3 100644 --- a/packages/string-templates/test/basic.spec.js +++ b/packages/string-templates/test/basic.spec.js @@ -107,6 +107,6 @@ describe("check manifest", () => { it("should be able to retrieve the manifest", () => { const manifest = getManifest() expect(manifest.math).not.toBeNull() - expect(manifest.math.abs.description).toBe("Return the magnitude of `a`.") + expect(manifest.math.abs.description).toBe("

    Return the magnitude of a.

    \n") }) }) \ No newline at end of file diff --git a/packages/string-templates/test/helpers.spec.js b/packages/string-templates/test/helpers.spec.js index bbd0e64e6e..6eadaabb05 100644 --- a/packages/string-templates/test/helpers.spec.js +++ b/packages/string-templates/test/helpers.spec.js @@ -167,7 +167,7 @@ describe("test the date helpers", () => { it("should allow use of the date helper with now time", async () => { const date = new Date() const output = await processString("{{ date now 'DD' }}", {}) - expect(output).toBe(date.getDate().toString()) + expect(parseInt(output)).toBe(date.getDate()) }) })