From 6ee2f4b8388745cc16a0a254c2ce90fadc4dfa97 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Tue, 21 Feb 2023 12:20:10 +0000 Subject: [PATCH] Remove specific debug modal layout --- .../components/debug/debug.modal.element.ts | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/shared/components/debug/debug.modal.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/debug/debug.modal.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/debug/debug.modal.element.ts deleted file mode 100644 index d9d370aaf0..0000000000 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/debug/debug.modal.element.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { css, html, TemplateResult } from 'lit'; -import { customElement } from 'lit/decorators.js'; -import { UUITextStyles } from '@umbraco-ui/uui-css'; -import { UmbModalLayoutElement } from '@umbraco-cms/modal'; - -export interface UmbDebugModalData { - content: TemplateResult | string; -} - -@customElement('umb-debug-modal-layout') -export default class UmbDebugModalLayout extends UmbModalLayoutElement { - static styles = [ - UUITextStyles, - css` - uui-dialog-layout { - display: flex; - flex-direction: column; - height: 100%; - - padding: var(--uui-size-space-5); - box-sizing: border-box; - } - - uui-scroll-container { - overflow-y: scroll; - max-height: 100%; - min-height: 0; - flex: 1; - } - - uui-icon { - vertical-align: text-top; - color: var(--uui-color-danger); - } - - .context { - padding: 15px 0; - border-bottom: 1px solid var(--uui-color-danger-emphasis); - } - - h3 { - margin-top: 0; - margin-bottom: 0; - } - - h3 > span { - border-radius: var(--uui-size-4); - background-color: var(--uui-color-danger); - color: var(--uui-color-danger-contrast); - padding: 8px; - font-size: 12px; - } - - ul { - margin-top: 0; - } - `, - ]; - - private _handleClose() { - this.modalHandler?.close(); - } - - render() { - return html` - - Debug: Contexts - ${this.data?.content} - Close - - `; - } -} - -declare global { - interface HTMLElementTagNameMap { - 'umb-debug-modal-layout': UmbDebugModalLayout; - } -}