Header - support primary navigation in header bottom region.

Created on 4 March 2025, about 1 month ago

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.

Feature request
Status

Active

Version

1.9

Component

Code

Created by

🇦🇺Australia alan.cole

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024