@vaadin/side-nav 25.3.3 → 25.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/side-nav",
3
- "version": "25.3.3",
3
+ "version": "25.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,19 +35,19 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.3.3",
39
- "@vaadin/component-base": "~25.3.3",
40
- "@vaadin/vaadin-themable-mixin": "~25.3.3",
38
+ "@vaadin/a11y-base": "~25.3.5",
39
+ "@vaadin/component-base": "~25.3.5",
40
+ "@vaadin/vaadin-themable-mixin": "~25.3.5",
41
41
  "lit": "^3.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@vaadin/aura": "~25.3.3",
45
- "@vaadin/chai-plugins": "~25.3.3",
46
- "@vaadin/icon": "~25.3.3",
47
- "@vaadin/icons": "~25.3.3",
48
- "@vaadin/test-runner-commands": "~25.3.3",
44
+ "@vaadin/aura": "~25.3.5",
45
+ "@vaadin/chai-plugins": "~25.3.5",
46
+ "@vaadin/icon": "~25.3.5",
47
+ "@vaadin/icons": "~25.3.5",
48
+ "@vaadin/test-runner-commands": "~25.3.5",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "~25.3.3",
50
+ "@vaadin/vaadin-lumo-styles": "~25.3.5",
51
51
  "lit": "^3.0.0",
52
52
  "sinon": "^22.0.0"
53
53
  },
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "9ce328ba54b283838ec9049d7351e4bbf96cba77"
59
+ "gitHead": "d5dd5b95c78030be2a41c5fe768bc07d39bd3ebf"
60
60
  }
@@ -288,7 +288,13 @@ class SideNavItem extends SideNavChildrenMixin(
288
288
  aria-labelledby="link i18n"
289
289
  ></button>
290
290
  </div>
291
- <ul part="children" role="list" ?hidden="${!this.expanded}" aria-hidden="${this.expanded ? 'false' : 'true'}">
291
+ <ul
292
+ id="children"
293
+ part="children"
294
+ role="list"
295
+ ?hidden="${!this.expanded}"
296
+ aria-hidden="${this.expanded ? 'false' : 'true'}"
297
+ >
292
298
  <slot name="children"></slot>
293
299
  </ul>
294
300
  <div hidden id="i18n">${this.__effectiveI18n.toggle}</div>
@@ -326,10 +332,10 @@ class SideNavItem extends SideNavChildrenMixin(
326
332
  /** @private */
327
333
  _onContentClick(e) {
328
334
  // Navigate if path is defined and not clicking on the link directly
329
- if (this.path && !e.composedPath().find((el) => el === this.$.link)) {
335
+ if (this.path != null && !e.composedPath().find((el) => el === this.$.link)) {
330
336
  this.$.link.click();
331
337
  }
332
- // Toggle item expanded state unless the link has a non-empty path
338
+ // Toggle item expanded state unless path is defined
333
339
  else if (this.path == null && this.hasAttribute('has-children') && !this.disabled) {
334
340
  this.__toggleExpanded();
335
341
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/side-nav",
4
- "version": "25.3.3",
4
+ "version": "25.3.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/side-nav",
4
- "version": "25.3.3",
4
+ "version": "25.3.5",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {