@openeuropa/bcl-listing 0.16.0 → 0.17.0

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/listing.html.twig CHANGED
@@ -4,7 +4,7 @@
4
4
  - variant: (string) (default: "horizontal") options:
5
5
  [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
6
6
  - title: (string) (default: "")
7
- - title_tag: (string) (default: "h4")
7
+ - title_tag: (string) (default: "h2")
8
8
  - items: (array of objects of type card)
9
9
  - link: (object of type link)
10
10
  - alignment: (string) (default: '') options:
@@ -14,7 +14,7 @@
14
14
  {% set _items = items|default([]) %}
15
15
  {% set _variant = variant|default('default-1-col') %}
16
16
  {% set _title = title|default('') %}
17
- {% set _title_tag = title_tag|default('h4') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
18
18
  {% set _alignment = alignment|default('') %}
19
19
  {% set _link = link|default({}) %}
20
20
  {% set _classes = ['bcl-listing', 'bcl-listing--' ~ _variant] %}
@@ -25,6 +25,11 @@
25
25
  gutter: '4',
26
26
  attributes: create_attribute(),
27
27
  } %}
28
+
29
+ {% if attributes is empty %}
30
+ {% set attributes = create_attribute() %}
31
+ {% endif %}
32
+
28
33
  {% set attributes = attributes.addClass(_classes) %}
29
34
 
30
35
  <div {{ attributes }}>
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@openeuropa/bcl-listing",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.16.0",
5
+ "version": "0.17.0",
6
6
  "description": "OE - BCL Listing",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-card-layout": "^0.16.0",
12
- "@openeuropa/bcl-link": "^0.16.0"
11
+ "@openeuropa/bcl-card-layout": "^0.17.0",
12
+ "@openeuropa/bcl-link": "^0.17.0"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -25,5 +25,5 @@
25
25
  "design-system",
26
26
  "twig"
27
27
  ],
28
- "gitHead": "39a52d25c36789a0c4712b0f6e55cbc5cbbedcb5"
28
+ "gitHead": "07ff24de8a209d80750a32cd52dfe9663fabf8e2"
29
29
  }