@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.
- package/components/02-molecules/progress-nav/progress-nav.scss +6 -0
- package/components/02-molecules/progress-nav/progress-nav.twig +2 -5
- package/components/02-molecules/progress-tracker/progress-tracker.twig +3 -5
- package/components/03-organisms/link-list/link-list.scss +2 -2
- package/dist/civictheme.css +3 -2
- package/dist/civictheme.storybook.css +3 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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">
|
package/dist/civictheme.css
CHANGED
|
@@ -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
|
|
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:
|
|
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
|
|
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:
|
|
11833
|
+
gap: 1rem;
|
|
11833
11834
|
}
|
|
11834
11835
|
|
|
11835
11836
|
.ct-list.ct-list--with-background {
|