dotcom-rendering icon indicating copy to clipboard operation
dotcom-rendering copied to clipboard

Use DCR support header component in new TopBar

Open cemms1 opened this issue 9 months ago • 4 comments

What does this change?

Uses the DCR support header in the new TopBar component (see https://github.com/guardian/dotcom-rendering/pull/11190)

In doing this, also:

  • Adds new Storybook stories for the SDC components (Header and SignInPromptHeader)
  • Adds Storybook mocks to show the standard Header and the SignInPromptHeader in the TopBar story

The TopBar component is currently behind a 0% test while it is being developed. It will be then trialled in an AB test before using permanently.

Why?

We are trialling a redesign of the site Header and moving the support messaging from the Header section to the TopBar.

By migrating the support header component from support-dotcom-components (SDC) to dotcom-rendering (DCR) #11290 we can keep using the SDC version in the existing header and rework the DCR version for the new top bar designs.

Screenshots

[!NOTE] The screenshots below do not include the new "title piece" section (reworked nav with the Guardian logo included) See https://github.com/guardian/dotcom-rendering/pull/11368 for this work

LeftCol examples (1200px)

Before before1
After (signed out) after1
After (signed in) after1b

Tablet (960px)

Before before2
After (signed out) after2
After (signed in) after2b

Mobile Landscape (600px)

Before before3
After (signed out) after3
After (signed in) after3b

Mobile (375px)

Before before4
After (signed out) after4
After (signed in) after4b

Sign In Prompt (header variation for users who have contributed without registering)

Screenshot 2024-05-23 at 16 12 35 Screenshot 2024-05-23 at 16 12 22 Screenshot 2024-05-23 at 16 12 11 Screenshot 2024-05-23 at 16 12 01

cemms1 avatar May 08 '24 14:05 cemms1