@openeuropa/bcl-inpage-navigation 1.10.1 → 1.10.2
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/inpage-navigation.html.twig +10 -6
- package/package.json +3 -3
|
@@ -29,8 +29,8 @@ Parameters:
|
|
|
29
29
|
{% endif %}
|
|
30
30
|
|
|
31
31
|
{% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
|
|
32
|
-
{% set title_attributes = _title_attributes.addClass('mb-0') %}
|
|
33
|
-
{% set
|
|
32
|
+
{% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
|
|
33
|
+
{% set _button_content %}
|
|
34
34
|
{{ _title }}
|
|
35
35
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
36
36
|
name: 'chevron-down',
|
|
@@ -51,13 +51,17 @@ Parameters:
|
|
|
51
51
|
.setAttribute('type', 'button')
|
|
52
52
|
.setAttribute('id', _dropdown_id)
|
|
53
53
|
.setAttribute('data-bs-toggle', 'dropdown')
|
|
54
|
-
.addClass(['dropdown-toggle']) %}
|
|
54
|
+
.addClass(['dropdown-toggle', 'h2', 'd-md-none']) %}
|
|
55
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
56
|
+
label: _button_content,
|
|
57
|
+
clean_class: true,
|
|
58
|
+
attributes: trigger_attributes,
|
|
59
|
+
} only %}
|
|
55
60
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
56
|
-
title:
|
|
61
|
+
title: _title,
|
|
57
62
|
title_tag: _title_tag,
|
|
58
63
|
title_link: _title_link,
|
|
59
|
-
attributes: _title_attributes
|
|
60
|
-
.merge(trigger_attributes),
|
|
64
|
+
attributes: _title_attributes,
|
|
61
65
|
} only %}
|
|
62
66
|
<div class="dropdown-menu" aria-labelledby="{{ _dropdown_id }}">
|
|
63
67
|
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
|
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-inpage-navigation",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.2",
|
|
6
6
|
"description": "OE - BCL inpage navigation",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-navigation": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-navigation": "^1.10.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"lorem-ipsum": "2.0.8"
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"design-system",
|
|
28
28
|
"twig"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "d4bb50f58dd038748c618cc2f7bff2674f0b1f2a"
|
|
31
31
|
}
|