diff --git a/templates/regions/region--header.html.twig b/templates/regions/region--header.html.twig index 24028b3c5773c8940b1aa727ebe90720bf277b8f..ceb443e2904748339c006815e340206b8d517394 100644 --- a/templates/regions/region--header.html.twig +++ b/templates/regions/region--header.html.twig @@ -1,7 +1,23 @@ -{% embed '@layouts/header/header.twig' %} - - {% block content %} - {{ content }} - {% endblock %} - -{% endembed %} +{# +/** + * @file + * Theme override to display a region. + * + * Available variables: + * - content: The content for this region, typically blocks. + * - attributes: HTML attributes for the region div. + * - region: The name of the region variable as defined in the theme's + * .info.yml file. + * + * @see template_preprocess_region() + */ +#} +{% embed '@layouts/header/header.twig' with { + 'classes': classes +}%} + + {% block content %} + {{ content }} + {% endblock %} + +{% endembed %} diff --git a/uw_fdsu_theme_resp.info.yml b/uw_fdsu_theme_resp.info.yml index c8920cc2cce54d9c134d5b4217e813c699bf5081..5c81302dd6590df32e73bf3f0a2f757d7a423b7d 100644 --- a/uw_fdsu_theme_resp.info.yml +++ b/uw_fdsu_theme_resp.info.yml @@ -75,6 +75,9 @@ regions: # patterns folder = `$sourceDir` + `_patterns/` component-libraries: + global: + paths: + - uw_wcms_gesso/source/_patterns/01-global base: paths: - uw_wcms_gesso/source/_patterns/02-base diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 046c81e41a6b90ef95b000ae0dd7c99738417048..59d5bed1fafa525a49cf02ff861415800246e644 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -23,10 +23,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { // (i.e. faculty colour and get the correct class here). if ($region == "header") { // The class that is used for the header. - $variables['attributes']['class'][] = 'header'; + $variables['classes'][] = 'uw-header'; // The colour scheme to be used for the header. - $variables['attributes']['class'][] = 'default'; + $variables['classes'][] = 'default'; } }