From d577e733f5bdb0f5ef1475ded4f577f9069e60f1 Mon Sep 17 00:00:00 2001 From: Jalal Fathi Date: Sat, 29 May 2021 23:28:23 +0200 Subject: [PATCH 1/2] docs(overlays): apply missing OverlayMixin --- docs/docs/systems/overlays/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/systems/overlays/overview.md b/docs/docs/systems/overlays/overview.md index 5be695cfe..7ef2cfd27 100644 --- a/docs/docs/systems/overlays/overview.md +++ b/docs/docs/systems/overlays/overview.md @@ -72,7 +72,7 @@ Or creating your own Web Component which uses the Overlay System import { LitElement } from '@lion/core'; import { OverlayMixin, withModalDialogConfig } from '@lion/overlays'; -class MyOverlayComponent extends LitElement { +class MyOverlayComponent extends OverlayMixin(LitElement) { _defineOverlayConfig() { return { ...withModalDialogConfig, From b7bfb97a4d31dad3bd59f6dd4d7777d753081432 Mon Sep 17 00:00:00 2001 From: Jalal Fathi Date: Sun, 30 May 2021 00:54:58 +0200 Subject: [PATCH 2/2] docs(overlays): invoke withModalDialogConfig --- docs/docs/systems/overlays/overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/systems/overlays/overview.md b/docs/docs/systems/overlays/overview.md index 7ef2cfd27..8e3bb0c86 100644 --- a/docs/docs/systems/overlays/overview.md +++ b/docs/docs/systems/overlays/overview.md @@ -69,13 +69,13 @@ const ctrl = new OverlayController({ Or creating your own Web Component which uses the Overlay System ```js -import { LitElement } from '@lion/core'; +import { LitElement, html } from '@lion/core'; import { OverlayMixin, withModalDialogConfig } from '@lion/overlays'; class MyOverlayComponent extends OverlayMixin(LitElement) { _defineOverlayConfig() { return { - ...withModalDialogConfig, + ...withModalDialogConfig(), }; }