aria-ease 1.0.1 → 1.0.2
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param {string} menu The id of the menu
|
|
4
4
|
* @param {string} menuItem The class of the items that are children of the menu
|
|
5
5
|
**/
|
|
6
|
-
function makeMenuAccessible(menu, menuItem) {
|
|
6
|
+
export function makeMenuAccessible(menu, menuItem) {
|
|
7
7
|
var menuDiv = document.querySelector("#".concat(menu));
|
|
8
8
|
var menuItems = menuDiv.querySelectorAll(".".concat(menuItem));
|
|
9
9
|
menuItems.item(0).focus();
|
|
@@ -36,4 +36,3 @@ function makeMenuAccessible(menu, menuItem) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
export { makeMenuAccessible };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { HTMLElement, NodeListOfHTMLElement } from '../../Types'
|
|
8
8
|
|
|
9
|
-
function makeMenuAccessible(menu: string, menuItem: string): void {
|
|
9
|
+
export function makeMenuAccessible(menu: string, menuItem: string): void {
|
|
10
10
|
const menuDiv: HTMLElement = document.querySelector(`#${menu}`) as HTMLElement
|
|
11
11
|
const menuItems: NodeListOfHTMLElement = menuDiv.querySelectorAll(`.${menuItem}`)
|
|
12
12
|
|
|
@@ -38,6 +38,4 @@ function makeMenuAccessible(menu: string, menuItem: string): void {
|
|
|
38
38
|
break;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { makeMenuAccessible }
|
|
41
|
+
}
|