@ilo-org/twig 0.10.1 → 0.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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @ilo-org/twig@0.10.1 build:lib /home/runner/work/designsystem/designsystem/packages/twig
2
+ > @ilo-org/twig@0.10.2 build:lib /home/runner/work/designsystem/designsystem/packages/twig
3
3
  > node importprefix.js && node importsvgs.js && pnpm output
4
4
 
5
5
  theme prefix added
6
6
 
7
- > @ilo-org/twig@0.10.1 output /home/runner/work/designsystem/designsystem/packages/twig
7
+ > @ilo-org/twig@0.10.2 output /home/runner/work/designsystem/designsystem/packages/twig
8
8
  > node outputtwigs.js
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3661a0200: Fix bug in Button where icons appeared outside the borders of the button. This was caused by the attribute being mislabelled in the twig component preventing the correct classname from being applied.
8
+ - Updated dependencies [c0fb36a66]
9
+ - @ilo-org/brand-assets@0.2.0
10
+
3
11
  ## 0.10.1
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "main": "",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "video.js": "^7.21.2",
25
- "@ilo-org/brand-assets": "0.1.0",
25
+ "@ilo-org/brand-assets": "0.2.0",
26
26
  "@ilo-org/fonts": "0.1.0",
27
27
  "@ilo-org/icons": "0.2.1",
28
28
  "@ilo-org/styles": "0.9.1",
@@ -2,17 +2,19 @@
2
2
  BUTTON COMPONENT
3
3
  #}
4
4
  {% if url %}
5
- <a class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPos}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target is defined and target != 'false' %}target="{{target}}" rel="noopener noreferrer"{% endif %} {% if disabled is defined and disabled == 'true' %}disabled{% endif %}>
6
- <span class="link__label">{{label}}</span>
7
- {% if icon %}
8
- {% include '@components/icon/icon.twig' with {icon: icon} %}
9
- {% endif %}
10
- </a>
5
+ <a class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target is defined and target != 'false' %} target="{{target}}" rel="noopener noreferrer" {% endif %} {% if disabled is defined and disabled == 'true' %} disabled {% endif %}>
6
+
7
+ <span class="link__label">{{label}}</span>
8
+ {% if icon %}
9
+ {% include '@components/icon/icon.twig' with {icon: icon} %}
10
+ {% endif %}
11
+ </a>
11
12
  {% else %}
12
- <button class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPos}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %}type="{{kind}}"{% endif %}{% if opensmodal %} aria-haspopup="dialog"{% endif %} {% if disabled is defined and disabled == 'true' %}disabled{% endif %}>
13
- <span class="button__label">{{label}}</span>
14
- {% if icon %}
15
- {% include '@components/icon/icon.twig' with {icon: icon} %}
16
- {% endif %}
17
- </button>
13
+ <button class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %} {% if disabled is defined and disabled == 'true' %} disabled {% endif %}>
14
+
15
+ <span class="button__label">{{label}}</span>
16
+ {% if icon %}
17
+ {% include '@components/icon/icon.twig' with {icon: icon} %}
18
+ {% endif %}
19
+ </button>
18
20
  {% endif %}