@openeuropa/bcl-alert 0.21.0 → 0.23.1

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 (2) hide show
  1. package/alert.html.twig +9 -1
  2. package/package.json +2 -2
package/alert.html.twig CHANGED
@@ -37,6 +37,14 @@
37
37
  {% set _classes = _classes|merge(['fade', 'show']) %}
38
38
  {% endif %}
39
39
 
40
+ {% set _classes = _classes|merge(['text-dark']) %}
41
+
42
+ {% set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
43
+
44
+ {% if _variant != 'light' %}
45
+ {% set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
46
+ {% endif %}
47
+
40
48
  {% if attributes is empty %}
41
49
  {% set attributes = create_attribute() %}
42
50
  {% endif %}
@@ -49,7 +57,7 @@
49
57
  name: _icon_name ?: _icon_names[_variant],
50
58
  size: 's',
51
59
  path: _icon_path,
52
- attributes: create_attribute().addClass(['flex-shrink-0 me-3 mt-1 align-self-start']),
60
+ attributes: create_attribute().addClass(_icon_classes),
53
61
  } only %}
54
62
  {% endif %}
55
63
  <div class="alert-content flex-grow-1">
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-alert",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.21.0",
5
+ "version": "0.23.1",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "18c01b34ca76780f480c692c566dfe507d961ccf"
24
+ "gitHead": "927e89290a185b5e578065e44e81cb99b0b47c12"
25
25
  }