@vaadin/side-nav 24.2.2 → 24.2.4

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": "24.2.2",
3
+ "version": "24.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,10 +34,10 @@
34
34
  "web-component"
35
35
  ],
36
36
  "dependencies": {
37
- "@vaadin/component-base": "~24.2.2",
38
- "@vaadin/vaadin-lumo-styles": "~24.2.2",
39
- "@vaadin/vaadin-material-styles": "~24.2.2",
40
- "@vaadin/vaadin-themable-mixin": "~24.2.2",
37
+ "@vaadin/component-base": "~24.2.4",
38
+ "@vaadin/vaadin-lumo-styles": "~24.2.4",
39
+ "@vaadin/vaadin-material-styles": "~24.2.4",
40
+ "@vaadin/vaadin-themable-mixin": "~24.2.4",
41
41
  "lit": "^2.0.0"
42
42
  },
43
43
  "devDependencies": {
@@ -50,5 +50,5 @@
50
50
  "web-types.json",
51
51
  "web-types.lit.json"
52
52
  ],
53
- "gitHead": "ed5edf42bd39119a7ab29b41000e7017af1579bc"
53
+ "gitHead": "885416de13069b7409ac90c1b323a58ac87da6ce"
54
54
  }
@@ -199,7 +199,7 @@ class SideNavItem extends SideNavChildrenMixin(DisabledMixin(ElementMixin(Themab
199
199
  <a
200
200
  id="link"
201
201
  ?disabled="${this.disabled}"
202
- tabindex="${this.disabled || !this.path ? '-1' : '0'}"
202
+ tabindex="${this.disabled || this.path == null ? '-1' : '0'}"
203
203
  href="${ifDefined(this.disabled ? null : this.path)}"
204
204
  part="link"
205
205
  aria-current="${this.current ? 'page' : 'false'}"
@@ -145,16 +145,23 @@ class SideNav extends SideNavChildrenMixin(FocusMixin(ElementMixin(ThemableMixin
145
145
  /** @protected */
146
146
  render() {
147
147
  return html`
148
- <button
149
- part="label"
150
- @click="${this._onLabelClick}"
151
- aria-expanded="${ifDefined(this.collapsible ? !this.collapsed : null)}"
152
- aria-hidden="${ifDefined(this.collapsible === false ? true : null)}"
153
- aria-controls="children"
154
- >
155
- <slot name="label" @slotchange="${this._onLabelSlotChange}"></slot>
156
- <span part="toggle-button" aria-hidden="true"></span>
157
- </button>
148
+ ${this.collapsible
149
+ ? html`
150
+ <button
151
+ part="label"
152
+ @click="${this._onLabelClick}"
153
+ aria-expanded="${!this.collapsed}"
154
+ aria-controls="children"
155
+ >
156
+ <slot name="label" @slotchange="${this._onLabelSlotChange}"></slot>
157
+ <span part="toggle-button" aria-hidden="true"></span>
158
+ </button>
159
+ `
160
+ : html`
161
+ <div part="label">
162
+ <slot name="label" @slotchange="${this._onLabelSlotChange}"></slot>
163
+ </div>
164
+ `}
158
165
  <ul
159
166
  id="children"
160
167
  role="list"
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": "24.2.2",
4
+ "version": "24.2.4",
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": "24.2.2",
4
+ "version": "24.2.4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {