From 1981e7c8d09ca7f44434087d0dae736b06f663a7 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Thu, 7 Mar 2024 13:01:42 +0100 Subject: [PATCH] feat: icon close --- libs/plugins-runtime/src/lib/plugin-modal.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/plugins-runtime/src/lib/plugin-modal.ts b/libs/plugins-runtime/src/lib/plugin-modal.ts index 8037e21..bd8f9b3 100644 --- a/libs/plugins-runtime/src/lib/plugin-modal.ts +++ b/libs/plugins-runtime/src/lib/plugin-modal.ts @@ -1,3 +1,6 @@ +const closeSvg = ` +`; + export class PluginModalElement extends HTMLElement { constructor() { super(); @@ -28,7 +31,7 @@ export class PluginModalElement extends HTMLElement { const closeButton = document.createElement('button'); closeButton.setAttribute('type', 'button'); - closeButton.textContent = '❌'; + closeButton.innerHTML = `
${closeSvg}
`; closeButton.addEventListener('click', () => { if (!this.shadowRoot) { return; @@ -98,6 +101,8 @@ export class PluginModalElement extends HTMLElement { h1 { color: #000; font-family: Arial, sans-serif; + margin: 0; + margin-block-end: 10px; } iframe {