@carbon-labs/react-ui-shell 0.22.0 → 0.24.0

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.
@@ -146,12 +146,16 @@ function SideNavRenderFunction(_ref, ref) {
146
146
  }
147
147
  });
148
148
  resetNodeTabIndices();
149
+ }
150
+ }, [prefix, internalIsTreeview]);
151
+ React.useEffect(() => {
152
+ if (sideNavRef.current) {
149
153
  const firstElement = sideNavRef?.current?.querySelector('a, button');
150
- if (firstElement) {
154
+ if (firstElement && (navType == SIDE_NAV_TYPE.PANEL || expanded)) {
151
155
  firstElement.tabIndex = 0;
152
156
  }
153
157
  }
154
- }, [prefix, internalIsTreeview]);
158
+ }, [expanded]);
155
159
 
156
160
  /**
157
161
  * Returns the parent SideNavMenu, if node is actually inside one.
@@ -25,6 +25,8 @@ function SideNavLinkPopover(_ref) {
25
25
  const prefix = usePrefix.usePrefix();
26
26
  return /*#__PURE__*/React.createElement(react.IconButton, _rollupPluginBabelHelpers.extends({
27
27
  className: index.default(className, `${prefix}--side-nav-link-popover`),
28
+ dropShadow: true,
29
+ highContrast: false,
28
30
  kind: "ghost"
29
31
  }, rest), children);
30
32
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
- var index = require('../../icon-helpers/es/index.js');
12
+ var index = require('../node_modules/@carbon/icon-helpers/es/index.js');
13
13
  var PropTypes = require('prop-types');
14
14
  var React = require('react');
15
15