From e1e072840a3d97f4ec7e86ac0988d2b24a8adc17 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Wed, 21 Aug 2019 14:44:08 -0700 Subject: [PATCH] fix: don't hide header at any viewport size (#364) * fix: don't hide header at any viewport size * fix: separate page tabs from the page header to simplify sticky logic * fix: background color and default height * fix: add default height for ie11 * fix: remove unused style systems * fix: tabs z index --- .../src/components/Header/Header.js | 11 ++------- .../src/components/Header/Header.module.scss | 4 ---- .../src/components/Layout.js | 10 ++------ .../src/components/LeftNav/LeftNav.js | 5 +--- .../src/components/LeftNav/LeftNavWrapper.js | 4 +--- .../LeftNav/LeftNavWrapper.module.scss | 4 ---- .../src/components/PageHeader/PageHeader.js | 23 +++---------------- .../PageHeader/PageHeader.module.scss | 20 +++++++--------- .../components/PageTabs/PageTabs.module.scss | 5 +++- .../src/templates/Default.js | 18 ++------------- 10 files changed, 23 insertions(+), 81 deletions(-) diff --git a/packages/gatsby-theme-carbon/src/components/Header/Header.js b/packages/gatsby-theme-carbon/src/components/Header/Header.js index b221b8f18..975fc1533 100644 --- a/packages/gatsby-theme-carbon/src/components/Header/Header.js +++ b/packages/gatsby-theme-carbon/src/components/Header/Header.js @@ -16,13 +16,12 @@ import NavContext from '../../util/context/NavContext'; import useMetadata from '../../util/hooks/useMetadata'; import { - hidden, header, switcherButtonOpen, skipToContent, } from './Header.module.scss'; -const Header = ({ children, shouldHideHeader }) => { +const Header = ({ children }) => { const { leftNavIsOpen, toggleNavState, switcherIsOpen } = useContext( NavContext ); @@ -30,13 +29,7 @@ const Header = ({ children, shouldHideHeader }) => { return ( <> - + -
+
- + {children}