@vaadin/side-nav 24.2.3 → 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.3",
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.3",
38
- "@vaadin/vaadin-lumo-styles": "~24.2.3",
39
- "@vaadin/vaadin-material-styles": "~24.2.3",
40
- "@vaadin/vaadin-themable-mixin": "~24.2.3",
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": "72e557e765e72559e9c6a525e257d185ad186dc5"
53
+ "gitHead": "885416de13069b7409ac90c1b323a58ac87da6ce"
54
54
  }
@@ -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.3",
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.3",
4
+ "version": "24.2.4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {