- Issue created by @alan.cole
- 🇦🇺Australia febdao Canberra
Hi 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/1356Cheers,
Primary menu does not style correctly in the 'header bottom 1' region.
1. Move the 'Primary Navigation' block to the 'Header bottom 1' region.
2. See that the menu does not style correctly.
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.
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.
No changes to the UI.
No changes to the API.
No changes to the data model.
Active
1.9
Code
Hi 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,