@skeletonlabs/skeleton 2.4.0-dev.4fe5e62f → 2.4.0-dev.504f3920

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.
@@ -30,9 +30,12 @@ $:
30
30
  function onKeyDown(event) {
31
31
  if (["Enter", "Space"].includes(event.code)) {
32
32
  event.preventDefault();
33
- elemInput.click();
33
+ selectElemInput();
34
34
  }
35
35
  }
36
+ function selectElemInput() {
37
+ elemInput.click();
38
+ }
36
39
  function prunedRestProps() {
37
40
  delete $$restProps.class;
38
41
  return $$restProps;
@@ -41,7 +44,9 @@ function prunedRestProps() {
41
44
 
42
45
  <label class="app-rail-tile {classesBase}" data-testid="app-rail-tile" {title} on:mouseover on:mouseleave on:focus on:blur>
43
46
  <!-- A11y attributes are not allowed on <label> -->
44
- <button class="app-rail-wrapper {classesWrapper}" tabindex="0" on:keydown={onKeyDown} on:keyup on:keypress>
47
+ <!-- FIXME: resolve a11y warnings -->
48
+ <!-- svelte-ignore a11y-no-static-element-interactions -->
49
+ <button class="app-rail-wrapper {classesWrapper}" tabindex="0" on:click={selectElemInput} on:keydown={onKeyDown} on:keyup on:keypress>
45
50
  <!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
46
51
  <div class="h-0 w-0 overflow-hidden">
47
52
  <input bind:this={elemInput} type="radio" bind:group {name} {value} {...prunedRestProps()} tabindex="-1" on:click on:change />
@@ -60,10 +60,9 @@ $:
60
60
  >
61
61
  {#each row as cell, cellIndex}
62
62
  <!-- Cell -->
63
- <!-- prettier-ignore -->
64
63
  <td
65
64
  class="{regionCell}"
66
- role={interactive ? "gridcell" : "cell"}
65
+ role="gridcell"
67
66
  aria-colindex={cellIndex + 1}
68
67
  tabindex={cellIndex === 0 && interactive ? 0 : -1}
69
68
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.4.0-dev.4fe5e62f",
3
+ "version": "2.4.0-dev.504f3920",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {