@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 +7 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/package.json +1 -1
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, [
|
|
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.
|
|
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
package/dist/index.d.ts
CHANGED
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, [
|
|
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.
|
|
340
|
+
* @version 1.2.8
|
|
336
341
|
* @author Yusuke Kamiyamane
|
|
337
342
|
* @license MIT
|
|
338
343
|
* @copyright Copyright (c) Yusuke Kamiyamane
|