#se-menu-style-issue menu items a little smaller and vertically centered

master
Agriya Dev5 2020-12-08 11:39:50 +05:30
parent f349540ec4
commit 03f9da0b02
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ template.innerHTML = `
<style>
</style>
<elix-menu-item>
<div>
<div style="display:inline-block;">
<img src="" alt="icon" style="display:none;" />
<span></span>
</div>
@ -28,6 +28,8 @@ export class SeMenuItem extends HTMLElement {
this.$img = this._shadowRoot.querySelector('img');
this.$label = this._shadowRoot.querySelector('span');
this.$menuitem = this._shadowRoot.querySelector('elix-menu-item');
this.$svg = this.$menuitem.shadowRoot.querySelector('#checkmark');
this.$svg.setAttribute('style', 'width:1px;height:1px;');
}
/**
* @function observedAttributes