From d2d481f12e1777a60ee5411c8cdac50b1dfc3ee3 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 13 Jan 2023 13:31:15 +0200 Subject: [PATCH] feat(editor): Update callout component design (#5126) feat(design-system): Update callout component design --- .../components/N8nCallout/Callout.stories.ts | 12 +--- .../src/components/N8nCallout/Callout.vue | 8 ++- .../__snapshots__/Callout.spec.ts.snap | 70 +++++++++++-------- 3 files changed, 52 insertions(+), 38 deletions(-) diff --git a/packages/design-system/src/components/N8nCallout/Callout.stories.ts b/packages/design-system/src/components/N8nCallout/Callout.stories.ts index bb9df493d5..48ccdafa77 100644 --- a/packages/design-system/src/components/N8nCallout/Callout.stories.ts +++ b/packages/design-system/src/components/N8nCallout/Callout.stories.ts @@ -64,9 +64,7 @@ export const defaultCallout = template.bind({}); defaultCallout.args = { theme: 'success', default: ` - - This is a default callout. - + This is a default callout. `, }; @@ -75,9 +73,7 @@ customCallout.args = { theme: 'custom', icon: 'code-branch', default: ` - - This is a custom callout. - + This is a custom callout. `, actions: ` @@ -91,9 +87,7 @@ secondaryCallout.args = { theme: 'secondary', icon: 'thumbtack', default: ` - - This data is pinned. - + This data is pinned. `, actions: ` diff --git a/packages/design-system/src/components/N8nCallout/Callout.vue b/packages/design-system/src/components/N8nCallout/Callout.vue index f901d8ad59..b349863d25 100644 --- a/packages/design-system/src/components/N8nCallout/Callout.vue +++ b/packages/design-system/src/components/N8nCallout/Callout.vue @@ -4,7 +4,10 @@
-   + + + +   @@ -14,6 +17,7 @@