Skip to content

Commit d83b5eb

Browse files
Slim nav for all interactive articles
1 parent 1ccba94 commit d83b5eb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

dotcom-rendering/src/layouts/FullPageInteractiveLayout.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ const Renderer = ({
144144
};
145145

146146
const NavHeader = ({ article, NAV, format, renderAds }: HeaderProps) => {
147-
// Typically immersives use the slim nav, but this switch is used to force
148-
// the full nav - typically during special events such as Project 200, or
149-
// the Euros. The motivation is to better onboard new visitors; interactives
150-
// often reach readers who are less familiar with the Guardian.
151-
const showSlimNav = !article.config.switches.interactiveFullHeaderSwitch;
152-
153147
return (
154148
<section
155149
/* Note, some interactives require this - e.g. https://www.theguardian.com/environment/ng-interactive/2015/jun/05/carbon-bomb-the-coal-boom-choking-china. */
@@ -184,7 +178,7 @@ const NavHeader = ({ article, NAV, format, renderAds }: HeaderProps) => {
184178
idApiUrl={article.config.idApiUrl}
185179
contributionsServiceUrl={article.contributionsServiceUrl}
186180
showSubNav={format.theme !== ArticleSpecial.Labs}
187-
showSlimNav={showSlimNav}
181+
showSlimNav={true}
188182
hasPageSkin={false}
189183
hasPageSkinContentSelfConstrain={false}
190184
pageId={article.pageId}

dotcom-rendering/src/layouts/InteractiveLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export const InteractiveLayout = (props: WebProps | AppsProps) => {
289289
idApiUrl={article.config.idApiUrl}
290290
contributionsServiceUrl={contributionsServiceUrl}
291291
showSubNav={format.theme !== ArticleSpecial.Labs}
292-
showSlimNav={false}
292+
showSlimNav={true}
293293
hasPageSkin={false}
294294
hasPageSkinContentSelfConstrain={false}
295295
pageId={article.pageId}

0 commit comments

Comments
 (0)