@nice-digital/global-nav 4.1.670 → 4.1.678-GN-161-Skip-submenu-

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.
@@ -49,7 +49,7 @@ function Dropdown(_ref) {
49
49
  var element = document.getElementById("navlink-" + hash);
50
50
  requestAnimationFrame(function () {
51
51
  (0, _newArrowCheck2["default"])(this, _this);
52
- element.focus();
52
+ element && element.focus();
53
53
  }.bind(this));
54
54
  closeDropdown();
55
55
  }
@@ -124,7 +124,8 @@ function NavLinks(_ref) {
124
124
  "aria-expanded": id === idOfOpenDropdown ? true : false,
125
125
  id: "navlink-" + id
126
126
  }, /*#__PURE__*/_react["default"].createElement("span", {
127
- "aria-label": abbreviation && title
127
+ "aria-label": abbreviation && title,
128
+ id: id
128
129
  }, text), id === idOfOpenDropdown ? /*#__PURE__*/_react["default"].createElement(_ChevronUp["default"], {
129
130
  className: _NavLinksModule["default"].icon,
130
131
  pointerEvents: "none"
@@ -138,7 +139,8 @@ function NavLinks(_ref) {
138
139
  onClick: handleNavLinkClick,
139
140
  id: "navlink-" + id
140
141
  }, /*#__PURE__*/_react["default"].createElement("span", {
141
- "aria-label": abbreviation && title
142
+ "aria-label": abbreviation && title,
143
+ id: id
142
144
  }, text), nestedLinks && /*#__PURE__*/_react["default"].createElement(_ChevronDown["default"], {
143
145
  className: _NavLinksModule["default"].icon,
144
146
  pointerEvents: "none"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/global-nav",
3
- "version": "4.1.670",
3
+ "version": "4.1.678-GN-161-Skip-submenu-",
4
4
  "description": "Global header and footer components for NICE digital services",
5
5
  "main": "lib/index.js",
6
6
  "types": "./types.d.ts",