@dile/ui 2.10.3 → 2.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,7 @@ export class DileHamburger extends LitElement {
119
119
  <button
120
120
  class="hamburger hamburger--squeeze ${this.active ? "is-active" : ""}"
121
121
  type="button"
122
+ aria-label="Open navigation menu"
122
123
  >
123
124
  <span class="hamburger-box">
124
125
  <span class="hamburger-inner"></span>
@@ -175,15 +175,17 @@ export class DileModal extends DileCloseOnEscPressed(LitElement) {
175
175
  }
176
176
 
177
177
  close() {
178
- this.opened = false;
179
- this._toChange = true;
180
- this.dispatchEvent(
181
- new CustomEvent("dile-modal-closed", {
182
- bubbles: true,
183
- composed: true,
184
- detail: this,
185
- })
186
- );
178
+ if(this.opened) {
179
+ this.opened = false;
180
+ this._toChange = true;
181
+ this.dispatchEvent(
182
+ new CustomEvent("dile-modal-closed", {
183
+ bubbles: true,
184
+ composed: true,
185
+ detail: this,
186
+ })
187
+ );
188
+ }
187
189
  }
188
190
 
189
191
  animationEnd() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.10.3",
3
+ "version": "2.10.5",
4
4
  "description": "UI Core components from dile-components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "5eae576b914c37c6f4a1ec49c610266128c9075e"
29
+ "gitHead": "ec00c938b7a5dc9f58f49e53f44a9ca3758d6d1e"
30
30
  }