@rokkit/ui 1.3.5 → 1.3.6

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.
@@ -157,18 +157,24 @@
157
157
  <div data-list-spacer></div>
158
158
  {:else if node.hasChildren}
159
159
  <!--
160
- Group header — data-accordion-trigger tells Navigator to dispatch
161
- toggle() instead of select() when this element is clicked.
162
- aria-expanded reflects the reactive proxy.expanded state.
160
+ Group header. When collapsible, data-accordion-trigger tells Navigator to
161
+ dispatch toggle() instead of select(), and aria-expanded reflects the
162
+ reactive proxy.expanded state. When NOT collapsible it's a static section
163
+ header: marked aria-disabled/data-disabled + tabindex=-1 so Navigator skips
164
+ it, but WITHOUT the native `disabled` attribute — a disabled <button> blocks
165
+ pointer/activation events across its whole subtree, which would make
166
+ interactive content in a group snippet inert (issue #140).
163
167
  -->
164
168
  <button
165
169
  type="button"
166
170
  data-list-group
167
171
  data-path={node.key}
168
- data-accordion-trigger
172
+ data-accordion-trigger={collapsible || undefined}
169
173
  data-level={node.level}
170
- aria-expanded={proxy.expanded}
171
- disabled={!collapsible}
174
+ data-disabled={!collapsible || undefined}
175
+ aria-expanded={collapsible ? proxy.expanded : undefined}
176
+ aria-disabled={!collapsible || undefined}
177
+ tabindex={collapsible ? undefined : -1}
172
178
  >
173
179
  {#if content}
174
180
  {@render content(proxy)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Data driven UI components for Rokkit applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,10 +44,10 @@
44
44
  "dropdown"
45
45
  ],
46
46
  "dependencies": {
47
- "@rokkit/core": "1.3.5",
48
- "@rokkit/data": "1.3.5",
49
- "@rokkit/states": "1.3.5",
50
- "@rokkit/actions": "1.3.5",
47
+ "@rokkit/core": "1.3.6",
48
+ "@rokkit/data": "1.3.6",
49
+ "@rokkit/states": "1.3.6",
50
+ "@rokkit/actions": "1.3.6",
51
51
  "marked": "^15.0.0",
52
52
  "dompurify": "^3.0.0"
53
53
  },