@functionalcms/svelte-components 4.2.12 → 4.2.13

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.
@@ -25,6 +25,7 @@
25
25
  ariaSelected?: boolean;
26
26
  ariaControls?: string;
27
27
  tabIndex?: number;
28
+ ariaLabel: string;
28
29
  click?: () => void;
29
30
  keydown?: (e: KeyboardEvent) => void;
30
31
  }
@@ -54,6 +55,7 @@
54
55
  tabIndex = 0,
55
56
  click = undefined,
56
57
  keydown = undefined,
58
+ ariaLabel = '',
57
59
  ...restProps
58
60
  }: Partial<Props> = $props();
59
61
 
@@ -86,6 +88,7 @@
86
88
  {role}
87
89
  aria-selected={ariaSelected}
88
90
  aria-controls={ariaControls}
91
+ aria-label={ariaLabel}
89
92
  tabindex={tabIndex}
90
93
  onclick={onclick}
91
94
  onkeydown={onkeydown}
@@ -101,6 +104,7 @@
101
104
  {role}
102
105
  aria-selected={ariaSelected}
103
106
  aria-controls={ariaControls}
107
+ aria-label={ariaLabel}
104
108
  tabindex={tabIndex}
105
109
  disabled={isDisabled}
106
110
  onclick={onclick}
@@ -22,6 +22,7 @@ declare const Button: import("svelte").Component<Partial<{
22
22
  ariaSelected?: boolean;
23
23
  ariaControls?: string;
24
24
  tabIndex?: number;
25
+ ariaLabel: string;
25
26
  click?: () => void;
26
27
  keydown?: (e: KeyboardEvent) => void;
27
28
  }>, {}, "">;
@@ -48,6 +48,7 @@
48
48
  <Button
49
49
  type="button"
50
50
  css="carousel__prev"
51
+ ariaLabel="Previous item on Carousele"
51
52
  style="order: -1 !important;width: 50px;height: 100%;background: none;border: none !important;align-self: center;"
52
53
  onclick={() => embla.scrollPrev()}
53
54
  >
@@ -71,6 +72,7 @@
71
72
  <Button
72
73
  type="button"
73
74
  css="carousel__next"
75
+ ariaLabel="Next item on Carousele"
74
76
  style="order: 1000 !important;width: 50px;height: 100%;background: none; border: none !important;align-self: center;"
75
77
  onclick={() => embla.scrollNext()}
76
78
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.2.12",
3
+ "version": "4.2.13",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [