]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/framework/modals.ts
Lexical: Added initial form/modal styles
[bookstack] / resources / js / wysiwyg / ui / framework / modals.ts
index bfc5fc619bf302fc54f59b4d4f90d0cb2bf4a158..6b09accdc8b930c2b00f7135d354dfc261ede34b 100644 (file)
@@ -1,7 +1,7 @@
 import {EditorForm, EditorFormDefinition} from "./forms";
 import {el} from "../../helpers";
 import {EditorContainerUiElement} from "./core";
-
+import closeIcon from "@icons/close.svg";
 
 export interface EditorModalDefinition {
     title: string;
@@ -37,7 +37,12 @@ export class EditorFormModal extends EditorContainerUiElement {
     }
 
     protected buildDOM(): HTMLElement {
-        const closeButton = el('button', {class: 'editor-modal-close', type: 'button', title: this.trans('Close')}, ['x']);
+        const closeButton = el('button', {
+            class: 'editor-modal-close',
+            type: 'button',
+            title: this.trans('Close'),
+        });
+        closeButton.innerHTML = closeIcon;
         closeButton.addEventListener('click', this.hide.bind(this));
 
         const modal = el('div', {class: 'editor-modal editor-form-modal'}, [