aria-ease 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aria-ease",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Out of the box utility accessibility package to develop production ready applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@ export function makeMenuAccessible(menuId, menuItemClass) {
10
10
  var menuItems = menuDiv.querySelectorAll(".".concat(menuItemClass));
11
11
  var triggerId = menuDiv.getAttribute('aria-labelledby');
12
12
  var triggerButton = document.querySelector("#".concat(triggerId));
13
- if (window.innerWidth >= 1025) {
13
+ if (window.innerWidth >= 992) {
14
14
  menuItems.item(0).focus();
15
15
  menuItems.forEach(function (menuItem, menuItemIndex) {
16
16
  if (!eventListenersAdded.has(menuItem)) {
@@ -16,7 +16,7 @@ export function makeMenuAccessible(menuId: string, menuItemClass: string): void
16
16
  const triggerId: string = menuDiv.getAttribute('aria-labelledby') as string
17
17
  const triggerButton: HTMLElement = document.querySelector(`#${triggerId}`) as HTMLElement
18
18
 
19
- if(window.innerWidth >= 1025) {
19
+ if(window.innerWidth >= 992) {
20
20
  menuItems.item(0).focus();
21
21
  menuItems.forEach((menuItem: HTMLElement, menuItemIndex: number): void => {
22
22
  if (!eventListenersAdded.has(menuItem)) {
@@ -24,5 +24,5 @@ export function makeMenuAccessible(menuId: string, menuItemClass: string): void
24
24
  menuItem.addEventListener('keydown', (event: KeyboardEvent): void => handleKeyPress(event, menuItems, menuItemIndex, menuDiv, triggerButton))
25
25
  }
26
26
  })
27
- }
27
+ }
28
28
  }