@y14e/accordion 1.2.7 → 1.2.8

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/dist/index.cjs CHANGED
@@ -141,7 +141,12 @@ var Accordion = class _Accordion {
141
141
  #initialize() {
142
142
  this.#eventController = new AbortController();
143
143
  const { signal } = this.#eventController;
144
- saveAttributes(this.#triggerElements, ["aria-controls", "id", "tabindex"]);
144
+ saveAttributes(this.#triggerElements, [
145
+ "aria-controls",
146
+ "aria-label",
147
+ "id",
148
+ "tabindex"
149
+ ]);
145
150
  this.#triggerElements.forEach((trigger, i) => {
146
151
  const id = Math.random().toString(36).slice(-8);
147
152
  const content = this.#contentElements[i];
@@ -334,7 +339,7 @@ function waitAnimationFinish(animation) {
334
339
  * Accordion
335
340
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
336
341
  *
337
- * @version 1.2.7
342
+ * @version 1.2.8
338
343
  * @author Yusuke Kamiyamane
339
344
  * @license MIT
340
345
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.2.7
5
+ * @version 1.2.8
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.2.7
5
+ * @version 1.2.8
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -139,7 +139,12 @@ var Accordion = class _Accordion {
139
139
  #initialize() {
140
140
  this.#eventController = new AbortController();
141
141
  const { signal } = this.#eventController;
142
- saveAttributes(this.#triggerElements, ["aria-controls", "id", "tabindex"]);
142
+ saveAttributes(this.#triggerElements, [
143
+ "aria-controls",
144
+ "aria-label",
145
+ "id",
146
+ "tabindex"
147
+ ]);
143
148
  this.#triggerElements.forEach((trigger, i) => {
144
149
  const id = Math.random().toString(36).slice(-8);
145
150
  const content = this.#contentElements[i];
@@ -332,7 +337,7 @@ function waitAnimationFinish(animation) {
332
337
  * Accordion
333
338
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
334
339
  *
335
- * @version 1.2.7
340
+ * @version 1.2.8
336
341
  * @author Yusuke Kamiyamane
337
342
  * @license MIT
338
343
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",