diff --git a/src/app.js b/src/app.js index fab843e..75d38af 100644 --- a/src/app.js +++ b/src/app.js @@ -4,6 +4,7 @@ import './components/item-list.js'; import './components/custom-item.js'; import './components/custom-modal.js'; import './components/custom-text.js'; +import './components/back-icon.js'; import Store from './modules/store.js'; import text from './modules/text.js'; @@ -72,9 +73,6 @@ class AppBase extends HTMLElement { .button-bar > .right-button { margin-left: auto; } - #undo-char { - margin-top: 3px; - }

${this.text.title}

@@ -83,12 +81,7 @@ class AppBase extends HTMLElement { ${this.store.getRecords().map((item) => ``)} - + diff --git a/src/components/back-icon.js b/src/components/back-icon.js new file mode 100644 index 0000000..c015419 --- /dev/null +++ b/src/components/back-icon.js @@ -0,0 +1,27 @@ +class BackIcon extends HTMLElement { + static observedAttributes = ['color']; + + constructor() { + super(); + this.attachShadow({ mode: 'open' }); + } + + connectedCallback() { + this.render(); + } + + attributeChangedCallback() { + this.render(); + } + + render() { + this.shadowRoot.innerHTML = ` + + + + + `; + } +} + +customElements.define('back-icon', BackIcon);