aria-ease 1.0.0 → 1.0.1
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/menu/makeMenuAccessible.js +1 -4
- package/src/menu/makeMenuAccessible.ts +4 -2
- package/tsconfig.json +3 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Adds keyboard navigation to menu.
|
|
4
3
|
* @param {string} menu The id of the menu
|
|
5
4
|
* @param {string} menuItem The class of the items that are children of the menu
|
|
6
5
|
**/
|
|
7
|
-
|
|
8
6
|
function makeMenuAccessible(menu, menuItem) {
|
|
9
7
|
var menuDiv = document.querySelector("#".concat(menu));
|
|
10
8
|
var menuItems = menuDiv.querySelectorAll(".".concat(menuItem));
|
|
@@ -38,5 +36,4 @@ function makeMenuAccessible(menu, menuItem) {
|
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
|
-
|
|
42
|
-
export { makeMenuAccessible }
|
|
39
|
+
export { makeMenuAccessible };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { HTMLElement, NodeListOfHTMLElement } from '../../Types'
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
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,4 +38,6 @@ export function makeMenuAccessible(menu: string, menuItem: string): void {
|
|
|
38
38
|
break;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { makeMenuAccessible }
|
package/tsconfig.json
CHANGED