@openeuropa/bcl-mega-menu 1.10.8 → 1.10.9
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.
- package/mega-menu-submenu.html.twig +10 -7
- package/package.json +5 -5
|
@@ -21,30 +21,28 @@
|
|
|
21
21
|
}) %}
|
|
22
22
|
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
23
23
|
|
|
24
|
-
{
|
|
24
|
+
{% set _see_all_link = null %}
|
|
25
|
+
{# Prepare an optional "See all" link rendered outside the list. #}
|
|
25
26
|
{% if _see_all is not empty %}
|
|
26
|
-
{# Wrap the label for an ellipsis. #}
|
|
27
27
|
{% set _see_all_label %}
|
|
28
28
|
<span>{{- _see_all.label -}}</span>
|
|
29
29
|
{% endset %}
|
|
30
30
|
{% set _see_all_attr = (_see_all.attributes is defined ? _see_all.attributes : create_attribute()) %}
|
|
31
|
-
{% set
|
|
31
|
+
{% set _see_all_link = _see_all|merge({
|
|
32
32
|
label: _see_all_label,
|
|
33
33
|
icon: {
|
|
34
|
+
size: 'xs',
|
|
34
35
|
name: 'arrow-right',
|
|
35
36
|
path: _icon_path,
|
|
36
37
|
},
|
|
37
|
-
li_attributes: create_attribute()
|
|
38
|
-
.addClass('__see_all'),
|
|
39
38
|
attributes: _see_all_attr
|
|
40
39
|
.addClass(['see-all-button'])
|
|
41
40
|
.setAttribute('aria-label', 'See all items in ‘' ~ _trigger.label ~ '’')
|
|
42
41
|
}) %}
|
|
43
|
-
{% set _items = _items|merge([_see_all]) %}
|
|
44
42
|
{% endif %}
|
|
45
43
|
{% set submenu_attributes = create_attribute()
|
|
46
44
|
.setAttribute('id', _panel_id)
|
|
47
|
-
.setAttribute('hidden',
|
|
45
|
+
.setAttribute('hidden', true)
|
|
48
46
|
.setAttribute('role', 'group')
|
|
49
47
|
.setAttribute('aria-labelledby', _trigger_id)
|
|
50
48
|
.addClass('bcl-mega-menu__submenu', '__level-' ~ _level)
|
|
@@ -60,6 +58,11 @@
|
|
|
60
58
|
icon_path: _icon_path,
|
|
61
59
|
level: _level,
|
|
62
60
|
} only %}
|
|
61
|
+
{% if _see_all_link %}
|
|
62
|
+
<div class="__see_all">
|
|
63
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _see_all_link only %}
|
|
64
|
+
</div>
|
|
65
|
+
{% endif %}
|
|
63
66
|
</div>
|
|
64
67
|
|
|
65
68
|
{% endapply %}
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-mega-menu",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.9",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL mega menu",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-button": "^1.10.
|
|
12
|
-
"@openeuropa/bcl-dropdown": "^1.10.
|
|
13
|
-
"@openeuropa/bcl-link": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-button": "^1.10.9",
|
|
12
|
+
"@openeuropa/bcl-dropdown": "^1.10.9",
|
|
13
|
+
"@openeuropa/bcl-link": "^1.10.9"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"design-system",
|
|
27
27
|
"twig"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "cb9864341bfc98404071520d61568bd18e17e1fe"
|
|
30
30
|
}
|