From 381ae861ed0b3c35b6d2f84d4433a2f7aaabe52e Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 2 Sep 2021 08:44:02 +0200 Subject: [PATCH] Add body slot --- packages/common/src/inline-notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/inline-notification.js b/packages/common/src/inline-notification.js index 0e0a32a4..01ae829c 100644 --- a/packages/common/src/inline-notification.js +++ b/packages/common/src/inline-notification.js @@ -57,7 +57,7 @@ export class InlineNotification extends DBPLitElement { } createBodyHtml() { - return document.createRange().createContextualFragment(`${ this.body }`); + return document.createRange().createContextualFragment(`<slot name="body">${ this.body }</slot>`); } render() { -- GitLab