aria-ease 1.5.6 → 1.5.7
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/aria-ease.d.ts
CHANGED
|
@@ -67,9 +67,8 @@ declare module 'aria-ease' {
|
|
|
67
67
|
/**
|
|
68
68
|
* Adds screen reader accessibility to a single toggle element. Updates the aria attributes of the toggle element. Toggle element must possess the following aria attributes; aria-pressed and aria-label.
|
|
69
69
|
* @param {string} togglesClass The shared class of all the toggle elements
|
|
70
|
-
* @param {string} updatedAriaLabel The aria label to be updated to toggle element
|
|
71
70
|
*/
|
|
72
|
-
function updateSingleToggleAriaAttribute(toggleClass: string
|
|
71
|
+
function updateSingleToggleAriaAttribute(toggleClass: string): void
|
|
73
72
|
|
|
74
73
|
/**
|
|
75
74
|
* Adds screen reader accessibility to toggle elements. Updates the aria attributes of the toggle elements. Toggle element must possess the following aria attributes; aria-pressed and aria-label.
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Adds screen reader accessibility to a single toggle element. Updates the aria attributes of the toggle element. Toggle element must possess the following aria attributes; aria-pressed and aria-label.
|
|
3
3
|
* @param {string} toggleClass The class of all the toggle element
|
|
4
|
-
* @param {string} updatedAriaLabel The aria label to be updated to toggle element
|
|
5
4
|
*/
|
|
6
5
|
export function updateSingleToggleAriaAttribute(toggleClass) {
|
|
7
6
|
var toggle = document.querySelector(".".concat(toggleClass));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Adds screen reader accessibility to a single toggle element. Updates the aria attributes of the toggle element. Toggle element must possess the following aria attributes; aria-pressed and aria-label.
|
|
3
3
|
* @param {string} toggleClass The class of all the toggle element
|
|
4
|
-
* @param {string} updatedAriaLabel The aria label to be updated to toggle element
|
|
5
4
|
*/
|
|
6
5
|
|
|
7
6
|
import { HTMLElement } from "../../../Types";
|