Problem/Motivation

Need a global header that looks nice and shows up instead of:

#3510425: Hide SDDS header blocks within XB

Steps to reproduce

Proposed resolution

This is the header that was designed in Figma but really anything that "looks okay" is fine:

Remaining tasks

Create a global block and update the theme config to add it to the header.

User interface changes

User will see the header block in XB

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kristen pol created an issue. See original summary.

kristen pol’s picture

Category: Task » Feature request
Priority: Normal » Major

Bumping to major as this is likely to be part of the official xb-demo and we want it to look good.

kristen pol’s picture

kristen pol’s picture

Title: Create SDDS global header » Create SDDS global header config
Assigned: Unassigned » kristen pol

I'm going to split this into 2 issues... I'm going to get the config into this one so it's ready for styling by Alan for tomorrow.

kristen pol’s picture

StatusFileSize
new71.54 KB

These are the header region placements

SDDS/CivicTheme block layout header region placement

kristen pol’s picture

StatusFileSize
new904.23 KB

With that info ^ and comparing to civictheme.io, we should use header middle 2 for the logo and main nav and header middle 3 for the right info.

It doesn't need to look exactly like the Figma design.

Top of civictheme.io website home page with main navigation and subnavigation

kristen pol’s picture

StatusFileSize
new662.93 KB

We should do it closer to what's on Drupal.org since it's not quite the same as the designs.

But we don't need to do the mega menu.

Main navigation for drupal.org with new branding

kristen pol’s picture

StatusFileSize
new50.25 KB

Here's what it's looking like... now I need to get it into the config

SDDS placement of logo and main navigation links and user menu links without theming

kristen pol’s picture

Status: Active » Needs review

I may just merge this but I'll see if anyone is around to review.

How to test:

If this works, the dev guide will need updating. As more recipes are added, we should be able to have one recipe that is dependent on the others though may have a hiccup with #3511805: Fix or workaround XB image alt bug that prevents saving SDDS components so may need to split that out.

kristen pol’s picture

kristen pol’s picture

I'm going to merge and keep going but still would be nice for others to try it in case there are some issues I didn't find

kristen pol’s picture

removing... duplicate comment

kristen pol’s picture

This and #3511866: Create SDDS global footer config can be tested at the same time by using the latest dev code.

Styling will happen here #3511877: Add SDDS global header styling

kristen pol’s picture

Status: Needs review » Needs work

From penyaskito via slack: missed the composer.json dependency to default_content... the starshot_demo theme depends on it on info.yml, but it's not in composer.json

kristen pol’s picture

Assigned: kristen pol » Unassigned
Status: Needs work » Fixed

Thanks!

kristen pol’s picture

Status: Fixed » Closed (fixed)
gábor hojtsy’s picture

Similar to #3511866-14: Create SDDS global footer config, I think there was a misunderstanding here? I think we would thruthfully demonstrate the current features of XB if there would be a general header region, rather than it being subdivided and a column (or header column) component placed to set the layout up there with menu blocks placed and the learn more button component placed within it.

gábor hojtsy’s picture

When a region is configured in XB, that is saved in page region config entities, NOT as block placement entities see https://git.drupalcode.org/project/experience_builder/-/blob/0.x/docs/co...

kristen pol’s picture

Copying from footer issue:

Yeah, when I created these, I wasn't aware of XB's global placement workflow.

Block placement has been removed and regions simplified per:

#3512657: Remove block placement of SDDS header+footer blocks
#3512060: Too many global regions in SDDS

but the content is still there.

Tweaks can be in the header/footer styling issues.