From 8e17e326b9ed2ce5568dbc296162fa0c83645503 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 5 Feb 2020 12:20:39 -0800 Subject: [PATCH] fix(ui-shell): allow custom classes on HeaderSideNavItems --- .../src/components/UIShell/HeaderSideNavItems.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/react/src/components/UIShell/HeaderSideNavItems.js b/packages/react/src/components/UIShell/HeaderSideNavItems.js index 81bc9381147d..1113c722a891 100644 --- a/packages/react/src/components/UIShell/HeaderSideNavItems.js +++ b/packages/react/src/components/UIShell/HeaderSideNavItems.js @@ -17,11 +17,13 @@ const HeaderSideNavItems = ({ children, hasDivider, }) => { - const className = cx({ - [`${prefix}--side-nav__header-navigation`]: true, - [`${prefix}--side-nav__header-divider`]: hasDivider, - customClassName, - }); + const className = cx( + { + [`${prefix}--side-nav__header-navigation`]: true, + [`${prefix}--side-nav__header-divider`]: hasDivider, + }, + customClassName + ); return
{children}
; };