@openeuropa/bcl-inpage-navigation 1.10.0 → 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.
@@ -7,8 +7,8 @@ Parameters:
7
7
  - title_link: (link object) (default: {})
8
8
  - title_attributes (drupal attrs)
9
9
  - links: (link[]) (default: [])
10
- - id (string) (default: bcl-inpage-navigation-random(100))
11
- - dropdown_id (string) (default: bcl-inpage-navigation-dropdown-random(100))
10
+ - id (string) (default: bcl-inpage-navigation-random(10000))
11
+ - dropdown_id (string) (default: bcl-inpage-navigation-dropdown-random(10000))
12
12
  - dynamic_active: (boolean) (default: false)
13
13
  - icon_path (string) (default: '')
14
14
  - attributes (drupal attrs)
@@ -19,9 +19,9 @@ Parameters:
19
19
  {% set _title_link = title_link|default({}) %}
20
20
  {% set _title_attributes = title_attributes ?: create_attribute() %}
21
21
  {% set _links = links|default([]) %}
22
- {% set _id = id|default('bcl-inpage-navigation-' ~ random(100)) %}
22
+ {% set _id = id|default('bcl-inpage-navigation-' ~ random(10000)) %}
23
23
  {% set _icon_path = icon_path|default('') %}
24
- {% set _dropdown_id = dropdown_id|default('bcl-inpage-navigation-dropdown' ~ random(100)) %}
24
+ {% set _dropdown_id = dropdown_id|default('bcl-inpage-navigation-dropdown' ~ random(10000)) %}
25
25
  {% set _dyanmic_active = dynamic_active|default(false) %}
26
26
 
27
27
  {% if attributes is empty %}
@@ -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 _title_content %}
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: _title_content,
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.0",
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.0"
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": "f83c1567b2ce60d7ccc564820bdb29ca58a26ad0"
30
+ "gitHead": "d4bb50f58dd038748c618cc2f7bff2674f0b1f2a"
31
31
  }