@openeuropa/bcl-theme-default 0.4185.202512021245 → 0.4230.202512021730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/css/oe-bcl-ckeditor5.min.css +1 -1
  2. package/css/oe-bcl-ckeditor5.min.css.map +1 -1
  3. package/css/oe-bcl-default.css +48 -50
  4. package/css/oe-bcl-default.css.map +1 -1
  5. package/css/oe-bcl-default.min.css +1 -1
  6. package/css/oe-bcl-default.min.css.map +1 -1
  7. package/js/oe-bcl-default.bundle.js +1 -68
  8. package/js/oe-bcl-default.bundle.js.map +1 -1
  9. package/js/oe-bcl-default.bundle.min.js +1 -1
  10. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  11. package/js/oe-bcl-default.esm.js +1 -67
  12. package/js/oe-bcl-default.esm.js.map +1 -1
  13. package/js/oe-bcl-default.esm.min.js +1 -1
  14. package/js/oe-bcl-default.esm.min.js.map +1 -1
  15. package/js/oe-bcl-default.umd.js +1 -68
  16. package/js/oe-bcl-default.umd.js.map +1 -1
  17. package/js/oe-bcl-default.umd.min.js +1 -1
  18. package/js/oe-bcl-default.umd.min.js.map +1 -1
  19. package/package.json +5 -5
  20. package/src/js/index.esm.js +0 -2
  21. package/src/js/index.umd.js +0 -2
  22. package/src/scss/_header.scss +2 -3
  23. package/src/scss/_mega-menu.scss +58 -47
  24. package/templates/bcl-accordion/accordion.html.twig +0 -3
  25. package/templates/bcl-alert/alert.html.twig +0 -3
  26. package/templates/bcl-badge/badge.html.twig +0 -3
  27. package/templates/bcl-banner/banner.html.twig +0 -3
  28. package/templates/bcl-base-templates/content-type.html.twig +0 -3
  29. package/templates/bcl-blockquote/blockquote.html.twig +0 -3
  30. package/templates/bcl-breadcrumb/breadcrumb.html.twig +0 -3
  31. package/templates/bcl-button/button.html.twig +0 -3
  32. package/templates/bcl-button-group/button-group.html.twig +0 -3
  33. package/templates/bcl-card/card.html.twig +0 -3
  34. package/templates/bcl-card-layout/card-layout.html.twig +0 -3
  35. package/templates/bcl-carousel/carousel.html.twig +0 -3
  36. package/templates/bcl-content-banner/content-banner.html.twig +0 -3
  37. package/templates/bcl-date-block/date-block.html.twig +0 -3
  38. package/templates/bcl-description-list/description-list-details.html.twig +0 -3
  39. package/templates/bcl-description-list/description-list-title.html.twig +0 -3
  40. package/templates/bcl-description-list/description-list.html.twig +0 -3
  41. package/templates/bcl-dropdown/dropdown.html.twig +0 -3
  42. package/templates/bcl-fact-figures/fact-figures.html.twig +0 -3
  43. package/templates/bcl-featured-media/featured-media.html.twig +0 -3
  44. package/templates/bcl-file/file-translations.html.twig +0 -3
  45. package/templates/bcl-file/file.html.twig +0 -3
  46. package/templates/bcl-footer/footer.html.twig +0 -3
  47. package/templates/bcl-form/form.html.twig +0 -3
  48. package/templates/bcl-form-input/form-input.html.twig +0 -3
  49. package/templates/bcl-gallery/gallery-item.html.twig +0 -3
  50. package/templates/bcl-gallery/gallery.html.twig +0 -3
  51. package/templates/bcl-header/header.html.twig +50 -46
  52. package/templates/bcl-heading/heading.html.twig +0 -3
  53. package/templates/bcl-icon/icon.html.twig +0 -3
  54. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +0 -3
  55. package/templates/bcl-language-list/language-list-grid.html.twig +0 -3
  56. package/templates/bcl-language-list/language-list.html.twig +0 -3
  57. package/templates/bcl-language-switcher/language-switcher.html.twig +0 -3
  58. package/templates/bcl-link/link.html.twig +0 -3
  59. package/templates/bcl-links-block/links-block.html.twig +0 -3
  60. package/templates/bcl-list-group/list-group.html.twig +0 -3
  61. package/templates/bcl-listing/listing.html.twig +0 -3
  62. package/templates/bcl-mega-menu/mega-menu-items.html.twig +0 -3
  63. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +6 -12
  64. package/templates/bcl-mega-menu/mega-menu.html.twig +0 -3
  65. package/templates/bcl-modal/modal.html.twig +0 -3
  66. package/templates/bcl-navbar/navbar.html.twig +0 -3
  67. package/templates/bcl-navigation/navigation.html.twig +1 -6
  68. package/templates/bcl-offcanvas/offcanvas.html.twig +0 -3
  69. package/templates/bcl-pagination/pagination-item.html.twig +0 -3
  70. package/templates/bcl-pagination/pagination.html.twig +0 -3
  71. package/templates/bcl-pagination-v2/pagination-item.html.twig +0 -3
  72. package/templates/bcl-pagination-v2/pagination.html.twig +0 -3
  73. package/templates/bcl-placeholder/placeholder.html.twig +0 -3
  74. package/templates/bcl-progress/progress.html.twig +0 -3
  75. package/templates/bcl-project/project-lists.html.twig +0 -4
  76. package/templates/bcl-project-status/project-contributions.html.twig +0 -3
  77. package/templates/bcl-project-status/project-status.html.twig +0 -3
  78. package/templates/bcl-recent-activities/recent-activities.html.twig +0 -3
  79. package/templates/bcl-search-form/search-form.html.twig +0 -3
  80. package/templates/bcl-select/select.html.twig +0 -3
  81. package/templates/bcl-spinner/spinner.html.twig +0 -3
  82. package/templates/bcl-subscription-block/subscription-block.html.twig +0 -3
  83. package/templates/bcl-table/table.html.twig +0 -3
  84. package/templates/bcl-textarea/textarea.html.twig +0 -3
  85. package/templates/bcl-timeline/timeline-item.html.twig +0 -3
  86. package/templates/bcl-timeline/timeline.html.twig +0 -3
  87. package/templates/bcl-toasts/toasts.html.twig +0 -3
  88. package/templates/bcl-user/user-compact.html.twig +0 -3
  89. package/src/js/header/header.js +0 -91
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-theme-default",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.4185.202512021245",
5
+ "version": "0.4230.202512021730",
6
6
  "description": "OE - BCL theme default",
7
7
  "scripts": {
8
8
  "align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
@@ -22,9 +22,9 @@
22
22
  "@ecl/resources-ec-logo": "3.7.1",
23
23
  "@ecl/resources-eu-logo": "3.7.1",
24
24
  "@ecl/resources-flag-icons": "3.7.1",
25
- "@openeuropa/bcl-bootstrap": "^0.4185.202512021245",
26
- "@openeuropa/bcl-builder": "^0.4185.202512021245",
27
- "@openeuropa/bcl-twig-templates": "^0.4185.202512021245",
25
+ "@openeuropa/bcl-bootstrap": "^0.4230.202512021730",
26
+ "@openeuropa/bcl-builder": "^0.4230.202512021730",
27
+ "@openeuropa/bcl-twig-templates": "^0.4230.202512021730",
28
28
  "@rollup/plugin-replace": "6.0.2",
29
29
  "copyfiles": "2.4.1",
30
30
  "cross-env": "10.1.0",
@@ -51,5 +51,5 @@
51
51
  "design-system",
52
52
  "twig"
53
53
  ],
54
- "gitHead": "795ad40621a91b0fbd8095b9ceed5f6ff30bb127"
54
+ "gitHead": "19735e328b2b53ccefbcc6829e2aaf149a2c438c"
55
55
  }
@@ -23,7 +23,6 @@ import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
23
23
  import Gallery from "@openeuropa/bcl-theme-default/src/js/gallery/gallery";
24
24
  import AccordionToggle from "@openeuropa/bcl-theme-default/src/js/accordion-toggle/accordion-toggle";
25
25
  import AccessibleToggle from "@openeuropa/bcl-theme-default/src/js/accessible-toggle/accessible-toggle";
26
- import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
27
26
 
28
27
  export {
29
28
  Alert,
@@ -44,5 +43,4 @@ export {
44
43
  Gallery,
45
44
  AccessibleToggle,
46
45
  AccordionToggle,
47
- Header,
48
46
  };
@@ -23,7 +23,6 @@ import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
23
23
  import AccordionToggle from "@openeuropa/bcl-theme-default/src/js/accordion-toggle/accordion-toggle";
24
24
  import Gallery from "@openeuropa/bcl-theme-default/src/js/gallery/gallery";
25
25
  import AccessibleToggle from "@openeuropa/bcl-theme-default/src/js/accessible-toggle/accessible-toggle";
26
- import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
27
26
 
28
27
  export default {
29
28
  Alert,
@@ -44,5 +43,4 @@ export default {
44
43
  Gallery,
45
44
  AccessibleToggle,
46
45
  AccordionToggle,
47
- Header,
48
46
  };
@@ -46,7 +46,6 @@ $header-link-active-background: #003776 !default;
46
46
  }
47
47
 
48
48
  .bcl-header {
49
- --oel-mega-menu-offset-top: 0px;
50
49
  .notification {
51
50
  position: relative;
52
51
  padding-right: 0;
@@ -97,9 +96,10 @@ $header-link-active-background: #003776 !default;
97
96
  header:has(.bcl-header__navbar #main-navbar.show),
98
97
  header:has(.bcl-header__navbar.collapsing),
99
98
  header:has(.bcl-header__navbar.show) {
100
- height: calc(100vh - var(--oel-mega-menu-offset-top, 0px));
99
+ height: 100vh;
101
100
  display: flex;
102
101
  flex-flow: column;
102
+ overflow: auto;
103
103
 
104
104
  > div:has(.breadcrumb) {
105
105
  display: none;
@@ -127,7 +127,6 @@ $header-link-active-background: #003776 !default;
127
127
  z-index: 1030;
128
128
  width: 100%;
129
129
  align-items: flex-start;
130
- overflow: auto;
131
130
  .navbar-nav {
132
131
  width: 100%;
133
132
  margin-top: 1rem;
@@ -275,6 +275,34 @@ ul.bcl-mega-menu__items {
275
275
  }
276
276
  }
277
277
  }
278
+
279
+ // The see-all link is at the bottom of the list.
280
+ &:has(> a.see-all-button) {
281
+ position: sticky;
282
+ inset-block-start: 100%;
283
+ }
284
+ > a.see-all-button {
285
+ border-top: none;
286
+ &:after {
287
+ background: $neutral-border-color;
288
+ content: "";
289
+ block-size: 1px;
290
+ inset-inline-start: 0;
291
+ position: absolute;
292
+ inset-block-start: 0;
293
+ // Replicate horizontal padding of parent element.
294
+ inset-inline: $mm-gutter-x;
295
+ }
296
+ > svg {
297
+ inline-size: 0.8rem;
298
+ }
299
+ > span {
300
+ text-overflow: ellipsis;
301
+ overflow: hidden;
302
+ display: block;
303
+ white-space: nowrap;
304
+ }
305
+ }
278
306
  }
279
307
  }
280
308
 
@@ -286,21 +314,6 @@ ul.bcl-mega-menu__items {
286
314
  // Avoid a space between the parent menu and the submenu.
287
315
  @include padding-right(0);
288
316
  }
289
- @include media-breakpoint-down(lg) {
290
- > .bcl-mega-menu__items {
291
- &:has(.bcl-mega-menu__submenu:not([hidden])) {
292
- > .__leaf,
293
- > .__parent {
294
- display: none;
295
- }
296
- }
297
- > .__parent {
298
- &:has(.bcl-mega-menu__submenu:not([hidden])) {
299
- display: block;
300
- }
301
- }
302
- }
303
- }
304
317
  }
305
318
 
306
319
  // Nested submenu.
@@ -359,42 +372,40 @@ ul.bcl-mega-menu__items {
359
372
  }
360
373
  }
361
374
  }
362
- @include media-breakpoint-up(lg) {
363
- > .bcl-mega-menu__items {
364
- flex: 1 1 0;
365
- overflow-y: auto;
366
- > li > :is(span, a, button) {
367
- @include mm-item-padding($px: map-get($spacers, "4-25"));
368
- }
369
- }
370
- }
371
- > .__see_all {
372
- border-top: 1px solid $neutral-border-color;
375
+ }
376
+
377
+ // Second level items column.
378
+ .bcl-mega-menu__second-submenu {
379
+ > .tab-content > .tab-pane {
380
+ // In desktop, the entire second-level list has a light blue background.
373
381
  @include media-breakpoint-up(lg) {
374
- border-top: 1px solid $primary-border-subtle;
375
- margin: 0 map-get($spacers, "4-25");
382
+ background: $primary-bg-subtle;
376
383
  }
377
- > .see-all-button {
378
- @include mm-item-padding();
379
- // Use flex for icon spacing.
380
- display: flex;
381
- align-items: center;
382
- color: $link-color;
383
- @include media-breakpoint-up(lg) {
384
- padding: $mm-gutter-y map-get($spacers, "4-25");
385
- margin: 0 -1.75rem;
386
- }
387
- &:hover {
388
- background: $primary-bg-subtle;
384
+ // Hide other parts of the mega menu in mobile, when a sub-submenu is open.
385
+ @include media-breakpoint-down(lg) {
386
+ .bcl-mega-menu__container:has(&.active) {
387
+ .bcl-mega-menu__info,
388
+ .bcl-mega-menu__first-submenu {
389
+ display: none;
390
+ }
389
391
  }
390
- > svg {
391
- flex-shrink: 0;
392
+ }
393
+ // The panel title only shows in mobile.
394
+ > .panel-title {
395
+ @include mm-item-padding(map-get($spacers, 3));
396
+ margin: 0;
397
+ color: $dark;
398
+ background: $primary-bg-subtle;
399
+ display: block;
400
+ font-size: 20px;
401
+ @include media-breakpoint-up(lg) {
402
+ display: none;
392
403
  }
393
- > span {
394
- text-overflow: ellipsis;
395
- overflow: hidden;
396
- display: block;
397
- white-space: nowrap;
404
+ }
405
+ // Items get a bit more space to the sides in xl viewport.
406
+ @include media-breakpoint-up(xl) {
407
+ > ul > li > * {
408
+ margin: 0 map-get($spacers, "2-5");
398
409
  }
399
410
  }
400
411
  }
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title (string) (default: '')
@@ -141,4 +139,3 @@
141
139
  </div>
142
140
  {% endif %}
143
141
 
144
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - message (string) (default: '')
5
3
  - heading (string) (default: '')
@@ -80,4 +78,3 @@
80
78
  {%- endif -%}
81
79
  </div>
82
80
 
83
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - label (string) (default: '')
5
3
  - background: (string) (default: 'primary')
@@ -76,4 +74,3 @@
76
74
  </span>
77
75
  {%- endif -%}
78
76
 
79
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title: (string) (default: '')
5
3
  - title_tag: (string) (default: 'div')
@@ -93,4 +91,3 @@
93
91
  </div>
94
92
  </div>
95
93
 
96
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - with_header (boolean) (default: false)
@@ -136,4 +134,3 @@
136
134
  {% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
137
135
  {% endif %}
138
136
 
139
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title (string) (default: '')
5
3
  - title_tag (string) (default: 'h2')
@@ -70,4 +68,3 @@
70
68
  {% endif %}
71
69
  </figure>
72
70
 
73
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - links (link[]) (default: [])
5
3
  - icon_path (string) (default: '')
@@ -59,4 +57,3 @@
59
57
  </nav>
60
58
  {% endif %}
61
59
 
62
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - label (string) (default: '')
@@ -111,4 +109,3 @@
111
109
  {%- endif -%}
112
110
  </button>
113
111
 
114
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - vertical (boolean) (default: false)
5
3
  - size (string) (default: 'md')
@@ -64,4 +62,3 @@
64
62
  </div>
65
63
  {% endif %}
66
64
 
67
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title: (string) (default: '')
5
3
  - title_tag: (string) (default: 'h1')
@@ -272,4 +270,3 @@
272
270
  {% endif %}
273
271
  </article>
274
272
 
275
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - type (string) (default: 'group')
5
3
  options: ['group', 'grid', 'masonry']
@@ -84,4 +82,3 @@
84
82
  {% endif %}
85
83
  </div>
86
84
 
87
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title (string) (default: '')
5
3
  - title_tag (string) (default: 'h2')
@@ -177,4 +175,3 @@
177
175
  {% endif %}
178
176
  </div>
179
177
 
180
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title: (string) (default: '')
@@ -136,4 +134,3 @@
136
134
  </div>
137
135
  </div>
138
136
 
139
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - day (integer) (default: '')
@@ -77,4 +75,3 @@
77
75
  </div>
78
76
  </time>
79
77
 
80
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - button: (button object) (default: {})
@@ -41,4 +39,3 @@
41
39
  {% endblock %}
42
40
  </dd>
43
41
 
44
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - icon: (icon object) (default: {})
@@ -30,4 +28,3 @@
30
28
  </div>
31
29
  </dt>
32
30
 
33
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title: (string) (default: '')
@@ -118,4 +116,3 @@
118
116
  </div>
119
117
  {% endif %}
120
118
 
121
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - id (string) (default: dropdown-random(10000))
5
3
  - trigger (link or button)
@@ -132,4 +130,3 @@
132
130
  </div>
133
131
  {% endif %}
134
132
 
135
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title (string) (default: '')
@@ -125,4 +123,3 @@
125
123
  </div>
126
124
  </div>
127
125
 
128
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title (string) (default: '')
5
3
  - title_tag (string) (default: 'h2')
@@ -169,4 +167,3 @@
169
167
  </div>
170
168
  {% endif %}
171
169
 
172
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - id (string) (default: language-dropdown-random(10000))
5
3
  - label (string) (default: '')
@@ -93,4 +91,3 @@
93
91
  {% endif %}
94
92
  </div>
95
93
 
96
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title (string) (default: '')
@@ -162,4 +160,3 @@
162
160
  {% endif %}
163
161
  </div>
164
162
 
165
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - variant (string) (default: 'neutral')
5
3
  - options: ['eu', 'ec', 'neutral']
@@ -87,4 +85,3 @@
87
85
  </div>
88
86
  </footer>
89
87
 
90
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title: (string) (default: '')
5
3
  - title_tag: (string) (default: 'h2')
@@ -147,4 +145,3 @@
147
145
  {% endif %}
148
146
  </form>
149
147
 
150
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - id (string) (default: '')
@@ -180,4 +178,3 @@
180
178
  </div>
181
179
  {% endif %}
182
180
 
183
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - item (object) (default: {})
@@ -62,4 +60,3 @@ Parameters:
62
60
  {{ _item.thumbnail }}
63
61
  </a>
64
62
 
65
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - id (string) (default: gallery-random(10000))
@@ -192,4 +190,3 @@ Parameters:
192
190
  </div>
193
191
  {% endif %}
194
192
 
195
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - variant (string) (default: 'neutral')
5
3
  - options: ['ec', 'eu', 'neutral']
@@ -17,8 +15,6 @@
17
15
  - language_modal (object) (default: {})
18
16
  - light (boolean) (default: false)
19
17
  - modals (modal[]) (default: [])
20
- - toggler_attributes (drupal attrs)
21
- - icon_path (string) (default: '')
22
18
  - attributes (drupal attrs)
23
19
  #}
24
20
 
@@ -32,8 +28,6 @@
32
28
  {% set _breadcrumbs = breadcrumbs|default({}) %}
33
29
  {% set _language_modal = language_modal|default({}) %}
34
30
  {% set _light = light ?? false %}
35
- {% set _toggler_attributes = toggler_attributes ?: create_attribute() %}
36
- {% set _icon_path = icon_path|default('') %}
37
31
  {% set _modals = modals|default([]) %}
38
32
 
39
33
  {% set _site_name_classes = 'bcl-header__site-name' %}
@@ -42,7 +36,7 @@
42
36
  {% set attributes = create_attribute() %}
43
37
  {% endif %}
44
38
 
45
- {% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant, 'shadow-sm']) %}
39
+ {% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant]) %}
46
40
 
47
41
  {% if site_name_classes is not empty %}
48
42
  {% set _site_name_classes = _site_name_classes ~ ' ' ~ site_name_classes %}
@@ -53,33 +47,6 @@
53
47
  {% set _project_classes = _project_classes ~ ' light' %}
54
48
  {% endif %}
55
49
 
56
- {% set toggler_attributes = _toggler_attributes.addClass(['bcl-navbar-toggler', 'd-lg-none'])
57
- .setAttribute('type', 'button')
58
- .setAttribute('data-bs-toggle', 'collapse')
59
- .setAttribute('data-bs-target', '#' ~ navbar_id)
60
- .setAttribute('aria-controls', navbar_id)
61
- .setAttribute('aria-expanded', 'false')
62
- %}
63
-
64
- {% set navbar_toggle_button %}
65
- <button
66
- {{ toggler_attributes }}
67
- >
68
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
69
- name: 'list',
70
- size: 'fluid',
71
- path: _icon_path,
72
- attributes: create_attribute().addClass(['default-icon']),
73
- } only %}
74
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
75
- name: 'x',
76
- size: 'fluid',
77
- path: _icon_path,
78
- attributes: create_attribute().addClass(['active-icon']),
79
- } only %}
80
- </button>
81
- {% endset %}
82
-
83
50
  <header
84
51
  {{ attributes }}
85
52
  >
@@ -101,16 +68,54 @@
101
68
  {% endfor %}
102
69
  </a>
103
70
  {% endif %}
104
- {{ navbar_toggle_button }}
71
+ <button
72
+ class="navbar-toggler bcl-navbar-toggler"
73
+ type="button"
74
+ data-bs-toggle="collapse"
75
+ data-bs-target='#{{ _navbar_id }}'
76
+ aria-controls='{{ _navbar_id }}'
77
+ aria-expanded="false"
78
+ aria-label="Toggle navigation"
79
+ >
80
+ <span class="navbar-toggler-icon"></span>
81
+ </button>
105
82
  </div>
106
83
  </nav>
107
84
 
108
- <!-- site name -->
109
- <div class="bcl-header__site-name" id="site-name-heading">
85
+
86
+ <!-- project name -->
87
+ {% if _project_logo is not empty or _site_name is not empty %}
88
+ <div class="{{ _project_classes }}">
110
89
  <div class="container">
111
- <span class="h5 py-3-5 border-top-subtle mb-0 d-block">{{ _site_name }}</span>
90
+ {% if _project_link is not empty %}
91
+ <a
92
+ href="{{ _project_link }}"
93
+ >
94
+ {% endif %}
95
+ {% if _project_logo is not empty %}
96
+ <img
97
+ {% if _project_logo.path is not empty %}
98
+ src="{{ _project_logo.path }}"
99
+ {% endif %}
100
+ {% if _project_logo.alt is not empty %}
101
+ alt="{{ _project_logo.alt }}"
102
+ {% endif %}
103
+ {% if _project_logo.classes is not empty %}
104
+ class="{{ _project_logo.classes }}"
105
+ {% endif %}
106
+ />
107
+ {% endif %}
108
+ {% if _site_name is not empty %}
109
+ <span class="{{ _site_name_classes }}">
110
+ {{- _site_name -}}
111
+ </span>
112
+ {% endif %}
113
+ {% if _project_link is not empty %}
114
+ </a>
115
+ {% endif %}
112
116
  </div>
113
117
  </div>
118
+ {% endif %}
114
119
 
115
120
  <!-- navbar -->
116
121
  {% if _navbar is not empty %}
@@ -119,14 +124,14 @@
119
124
  attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
120
125
  }) only %}
121
126
  {% endif %}
122
- </header>
123
127
 
124
- <!-- breadcrumbs -->
125
- {% if _breadcrumbs is not empty %}
126
- <div class="container">
127
- {% include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only %}
128
- </div>
129
- {% endif %}
128
+ <!-- breadcrumbs -->
129
+ {% if _breadcrumbs is not empty %}
130
+ <div class="container">
131
+ {% include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only %}
132
+ </div>
133
+ {% endif %}
134
+ </header>
130
135
 
131
136
  {% for modal in _modals %}
132
137
  {% include '@oe-bcl/bcl-modal/modal.html.twig' with modal only %}
@@ -136,4 +141,3 @@
136
141
  {% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
137
142
  {% endif %}
138
143
 
139
- {% endapply %}