diff --git a/frontend/src/components/BCHeader/index.tsx b/frontend/src/components/BCHeader/index.tsx index 295e3a6c0..cc5c18a1c 100644 --- a/frontend/src/components/BCHeader/index.tsx +++ b/frontend/src/components/BCHeader/index.tsx @@ -82,12 +82,12 @@ const BCHeader = () => { return ( (
{ @@ -95,6 +95,7 @@ const BCHeader = () => { ? ( @@ -179,9 +180,8 @@ const BCHeader = () => { isChildOfHeader expanded={isSideNavExpanded} aria-label={componentTexts.sideMenuAriaLabel} - inert={undefined} - className="spar-side-nav" - onClick={isSideNavExpanded ? onClickSideNavExpand : null} + className={`spar-side-nav ${!isSideNavExpanded ? 'spar-side-nav-expanded' : ''}`} + onClick={onClickSideNavExpand} >
{ diff --git a/frontend/src/components/BCHeader/styles.scss b/frontend/src/components/BCHeader/styles.scss index 171615e8b..4179d7c62 100644 --- a/frontend/src/components/BCHeader/styles.scss +++ b/frontend/src/components/BCHeader/styles.scss @@ -52,6 +52,10 @@ justify-content: space-between; overflow-y: auto; + &.spar-side-nav-expanded { + inline-size: 0; + } + .side-nav-top { padding-top: 1rem; } diff --git a/frontend/src/layout/PrivateLayout/styles.scss b/frontend/src/layout/PrivateLayout/styles.scss index b41fe2f76..b2ae35397 100644 --- a/frontend/src/layout/PrivateLayout/styles.scss +++ b/frontend/src/layout/PrivateLayout/styles.scss @@ -2,7 +2,7 @@ .main-container { padding-top: 5.625rem; - padding-left: 16rem; + transition: padding-left 0.11s cubic-bezier(0.2, 0, 1, 0.9), transform 0.11s cubic-bezier(0.2, 0, 1, 0.9); .dependency-notification { max-width: none; @@ -11,6 +11,11 @@ } } +header.spar-header:not(.spar-header-expanded) + div.main-container { + padding-left: 16rem; + transition: padding-left 0.11s cubic-bezier(0.2, 0, 1, 0.9), transform 0.11s cubic-bezier(0.2, 0, 1, 0.9); +} + .page-content .#{vars.$bcgov-prefix}--grid { max-width: none; }