@dta-au/civictheme-twig 1.15.0 → 1.15.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.
@@ -20,6 +20,12 @@
20
20
 
21
21
  &__sub-list {
22
22
  margin-left: 28px;
23
+
24
+ // Tuck the child under its parent: cancel the parent link's 11px bottom
25
+ // padding so the nested step hugs the step it belongs to, rather than
26
+ // floating midway to the next top-level step. Following steps shift up with
27
+ // it, so the gap below the child is unchanged.
28
+ margin-top: -11px;
23
29
  }
24
30
 
25
31
  // ── Header ──
@@ -49,11 +49,8 @@
49
49
  {% set item_status = item.status in ['completed', 'saved', 'in-progress', 'error', 'todo', 'cannot-start-yet'] ? item.status : 'todo' %}
50
50
  {% set is_active = item.is_active|default(false) %}
51
51
  {% set status_id = '%s-%s-status'|format(id_prefix, loop.index) %}
52
- {% set item_classes = [
53
- 'progress-nav__item',
54
- 'progress-nav__item--%s'|format(item_status),
55
- is_active ? 'is-active',
56
- ]|filter|join(' ') %}
52
+ {% set item_classes = 'progress-nav__item progress-nav__item--%s'|format(item_status) %}
53
+ {% if is_active %}{% set item_classes = item_classes ~ ' is-active' %}{% endif %}
57
54
 
58
55
  <li class="{{ item_classes }}">
59
56
 
@@ -20,11 +20,9 @@
20
20
  <ol class="progress-tracker {{ modifier_class -}}" {% if attributes is defined and attributes is not null %}{{- attributes -}}{% endif %}>
21
21
  {% for step in steps %}
22
22
  {% set status = step.status in ['complete', 'active'] ? step.status : 'todo' %}
23
- {% set step_classes = [
24
- 'progress-step',
25
- status == 'complete' ? 'is-complete',
26
- status == 'active' ? 'is-active',
27
- ]|filter|join(' ') %}
23
+ {% set step_classes = 'progress-step' %}
24
+ {% if status == 'complete' %}{% set step_classes = step_classes ~ ' is-complete' %}
25
+ {% elseif status == 'active' %}{% set step_classes = step_classes ~ ' is-active' %}{% endif %}
28
26
  <li class="{{ step_classes }}"{% if status == 'active' %} aria-current="step"{% endif %}>
29
27
  {% set marker %}
30
28
  <span class="progress-marker" aria-hidden="true">
@@ -6,12 +6,12 @@
6
6
  $root: &;
7
7
 
8
8
  #{$root}__title {
9
- margin: 0 0 ct-spacing(2);
9
+ margin: 0 0 ct-spacing(3);
10
10
  }
11
11
 
12
12
  #{$root}__items {
13
13
  display: flex;
14
14
  flex-direction: column;
15
- gap: ct-spacing(1);
15
+ gap: ct-spacing(2);
16
16
  }
17
17
  }
@@ -8441,6 +8441,7 @@ ol ol ol {
8441
8441
  }
8442
8442
  .progress-nav__sub-list {
8443
8443
  margin-left: 28px;
8444
+ margin-top: -11px;
8444
8445
  }
8445
8446
  .progress-nav__header {
8446
8447
  display: flex;
@@ -11824,12 +11825,12 @@ ol ol ol {
11824
11825
  }
11825
11826
 
11826
11827
  .ct-link-list .ct-link-list__title {
11827
- margin: 0 0 1rem;
11828
+ margin: 0 0 1.5rem;
11828
11829
  }
11829
11830
  .ct-link-list .ct-link-list__items {
11830
11831
  display: flex;
11831
11832
  flex-direction: column;
11832
- gap: 0.5rem;
11833
+ gap: 1rem;
11833
11834
  }
11834
11835
 
11835
11836
  .ct-list.ct-list--with-background {
@@ -8441,6 +8441,7 @@ ol ol ol {
8441
8441
  }
8442
8442
  .progress-nav__sub-list {
8443
8443
  margin-left: 28px;
8444
+ margin-top: -11px;
8444
8445
  }
8445
8446
  .progress-nav__header {
8446
8447
  display: flex;
@@ -11824,12 +11825,12 @@ ol ol ol {
11824
11825
  }
11825
11826
 
11826
11827
  .ct-link-list .ct-link-list__title {
11827
- margin: 0 0 1rem;
11828
+ margin: 0 0 1.5rem;
11828
11829
  }
11829
11830
  .ct-link-list .ct-link-list__items {
11830
11831
  display: flex;
11831
11832
  flex-direction: column;
11832
- gap: 0.5rem;
11833
+ gap: 1rem;
11833
11834
  }
11834
11835
 
11835
11836
  .ct-list.ct-list--with-background {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dta-au/civictheme-twig",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "license": "GPL-2.0-or-later",
5
5
  "description": "CivicTheme UI Kit for Twig",
6
6
  "keywords": [