Problem/Motivation
Primary menu does not style correctly in the 'header bottom 1' region.
Steps to reproduce
1. Move the 'Primary Navigation' block to the 'Header bottom 1' region.
2. See that the menu does not style correctly.
Proposed resolution
Given the changes that will be implemented in the UI Kit as part of https://github.com/civictheme/uikit/issues/467, apply the necessary ct-navigation type to the primary navigation in any region.
Remaining tasks
1. In file: `/web/themes/contrib/civictheme/includes/menu.inc` add a new variable `type` to the $variables array. `primary` if `$menu_name === 'civictheme_primary_navigation'` or `secondary` if `$menu_name === 'civictheme_secondary_navigation'`.
2. In file: `/web/themes/contrib/civictheme/templates/block/block--menu-block--civictheme-primary-navigation.html.twig` add a new variable `type` to the `navigation.twig` file.
3. In file: `/web/themes/contrib/civictheme/templates/block/block--menu-block--civictheme-secondary-navigation.html.twig` add a new variable `type` to the `navigation.twig` file.
User interface changes
No changes to the UI.
API changes
No changes to the API.
Data model changes
No changes to the data model.
| Comment | File | Size | Author |
|---|
Comments
Comment #2
fionamorrison23 commentedComment #3
febdao commentedHi Fiona,
The header has supported primary navigation in header bottom region now, please take a look into my PR https://github.com/civictheme/monorepo-drupal/pull/1356
Cheers,
Comment #4
fionamorrison23 commentedComment #5
fionamorrison23 commentedComment #6
fionamorrison23 commentedComment #8
fionamorrison23 commentedComment #9
danielgry commentedVerified and tested on latest CivicTheme dev version
Testing Results:
1. Moving the Primary Navigation block to the Header bottom 1 now produces the expected view on the FE.
2. Verified Primary navigation displays the correct layout and retains the correct alignment as per the CivicTheme Figma design
Screenshots:

1. Original Header appearance
2. Moving primary nav block & search block into Header bottom 1

3. Viewing new header structure on frontend

Comment #10
danielgry commentedComment #11
fionamorrison23 commented