qpp-style 9.16.4 → 9.16.7-beta.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.
@@ -78,10 +78,13 @@ const SideNavUI = ({
78
78
  );
79
79
  };
80
80
 
81
- const getDynamicContent = (contentItems, className, recursionId) => {
81
+ const getDynamicContent = (contentItems, className, recursionId, hideLinkClass) => {
82
82
  const { openDrawersByDefault, linkActiveFunc, linkCallback, useTooltips } =
83
83
  config;
84
- const linkClass = isExpandedState ? 'link-inline' : 'link-collapsed';
84
+ let linkClass = isExpandedState ? 'link-inline' : 'link-collapsed';
85
+ if (hideLinkClass) {
86
+ linkClass = '';
87
+ }
85
88
  const containerRecursionId = recursionId || 0;
86
89
 
87
90
  const getDynamicIcon = (icon) => {
@@ -105,7 +108,8 @@ const SideNavUI = ({
105
108
  container: getDynamicContent(
106
109
  item.items,
107
110
  item.className,
108
- containerRecursionId + 1
111
+ containerRecursionId + 1,
112
+ item.hideLinkClass
109
113
  ),
110
114
  linkBack: (
111
115
  <AnimationGroup display={isExpandedState} key={key}>