diff --git a/drawer.js b/drawer.js index 7f6b882..754016a 100644 --- a/drawer.js +++ b/drawer.js @@ -10,7 +10,7 @@ class Drawer extends IgniteElement { get styles() { return /*css*/` mt-drawer { - z-index: 999999; + z-index: 100; } mt-drawer > .container { @@ -77,7 +77,7 @@ class Drawer extends IgniteElement { mt-drawer > .open-btn { position: absolute; - z-index: 999999; + z-index: 100; width: 2.5em; height: 2.5em; font-size: 1.2em; @@ -104,7 +104,7 @@ class Drawer extends IgniteElement { mt-drawer > .container > .close-btn { position: absolute; - z-index: 999999; + z-index: 100; width: 2.5em; height: 2.5em; font-size: 1.2em; @@ -182,7 +182,7 @@ class Drawer extends IgniteElement { .child( new button() .class("close-btn") - .show([this.mobile, this.show, this.toggle], (mobile, show, toggle) => mobile && show && toggle) + .show([this.mobile, this.show, this.showToggleButton], (mobile, show, toggle) => mobile && show && toggle) .onClick(() => this.show = false) .child("") )