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 +1 -1
- package/package.json +1 -1
- package/src/OverflowMenu/OverflowMenu.svelte +3 -0
- package/src/Tag/Tag.svelte +1 -1
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,
|
|
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
|
@@ -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}
|