From 845ee160750c3ede0bc5b98198eee56f05deb9f4 Mon Sep 17 00:00:00 2001 From: Andrew Noblet Date: Wed, 21 Dec 2022 09:53:26 -0500 Subject: [PATCH] feat(cxl-ui): [cxl-notification] document renderer function --- packages/cxl-ui/src/components/cxl-notification.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/cxl-ui/src/components/cxl-notification.js b/packages/cxl-ui/src/components/cxl-notification.js index dec5407f..e30837db 100644 --- a/packages/cxl-ui/src/components/cxl-notification.js +++ b/packages/cxl-ui/src/components/cxl-notification.js @@ -5,6 +5,14 @@ export class CXLNotification extends Notification { return 'cxl-notification'; } + /** + * Since `template` elements are no longer supported by Vaadin, provide a default renderer which appends all child nodes to the notification root element. + * + * @param {HTMLElement} root + * @returns + * + * @see https://cxlworld.slack.com/archives/C01JABH8AHX/p1662121897793169 + */ renderer(root) { if (root.firstElementChild) { return;