carbon-components-svelte 0.87.4 → 0.87.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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ Design systems facilitate design and development through reuse, consistency, and
14
14
  The Carbon Svelte portfolio also includes:
15
15
 
16
16
  - **[Carbon Icons Svelte](https://github.com/carbon-design-system/carbon-icons-svelte)**: 2,400+ Carbon icons as Svelte components
17
- - **[Carbon Pictograms Svelte](https://github.com/carbon-design-system/carbon-pictograms-svelte)**: 1,100+ Carbon pictograms as Svelte components
17
+ - **[Carbon Pictograms Svelte](https://github.com/carbon-design-system/carbon-pictograms-svelte)**: 1,200+ Carbon pictograms as Svelte components
18
18
  - **[Carbon Charts Svelte](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/svelte)**: 25+ charts, powered by d3
19
19
  - **[Carbon Preprocess Svelte](https://github.com/carbon-design-system/carbon-preprocess-svelte)**: Collection of Svelte preprocessors for Carbon
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-components-svelte",
3
- "version": "0.87.4",
3
+ "version": "0.87.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte implementation of the Carbon Design System",
6
6
  "type": "module",
@@ -162,6 +162,7 @@
162
162
  onMountAfterUpdate = false;
163
163
  });
164
164
 
165
+ $: menuId = `menu-${id}`;
165
166
  $: ariaLabel = $$props["aria-label"] || "menu";
166
167
  $: if ($items[$currentIndex]) {
167
168
  focusedId.set($items[$currentIndex].id);
@@ -194,6 +195,7 @@
194
195
  aria-haspopup="true"
195
196
  aria-expanded={open}
196
197
  aria-label={ariaLabel}
198
+ aria-controls={open ? menuId : undefined}
197
199
  {id}
198
200
  class:bx--overflow-menu={true}
199
201
  class:bx--overflow-menu--open={open}
@@ -239,6 +241,7 @@
239
241
  bind:this={menuRef}
240
242
  role="menu"
241
243
  tabindex="-1"
244
+ id={menuId}
242
245
  aria-label={ariaLabel}
243
246
  data-floating-menu-direction={direction}
244
247
  class:bx--overflow-menu-options={true}
@@ -82,7 +82,7 @@
82
82
  class:bx--tag__close-icon={true}
83
83
  {disabled}
84
84
  {title}
85
- on:click|stopPropagation
85
+ on:click
86
86
  on:click|stopPropagation={() => {
87
87
  dispatch("close");
88
88
  }}