diff --git a/src/lib/components/step.svelte b/src/lib/components/step.svelte
index 95c010536..255d7ca84 100644
--- a/src/lib/components/step.svelte
+++ b/src/lib/components/step.svelte
@@ -9,7 +9,7 @@
+ aria-label={`${completed ? 'done' : current ? 'current' : ''} step`}>
{#if isSub}
{step.text}
{:else}
diff --git a/src/lib/components/steps.svelte b/src/lib/components/steps.svelte
index 5d0d82c24..905e663ab 100644
--- a/src/lib/components/steps.svelte
+++ b/src/lib/components/steps.svelte
@@ -3,18 +3,26 @@
export let steps: {
text: string;
+ optional: boolean;
substeps?: {
text: string;
}[];
}[];
export let currentStep = 1;
export let currentSub = 1;
+
+ $: firstOptional = steps.findIndex((step) => step.optional);
+
+ //TODO: remove inline styling
{#if steps}
{#each steps as step, index}
{@const stepNumber = index + 1}
+ {#if firstOptional === index}
+ OPTIONAL
+ {/if}
;
@@ -70,8 +71,10 @@
@@ -87,6 +90,10 @@
{/each}