diff --git a/app/views/components/molecules/_progress_step_bar.html.erb b/app/views/components/molecules/_progress_step_bar.html.erb index c281dbde..d356b458 100644 --- a/app/views/components/molecules/_progress_step_bar.html.erb +++ b/app/views/components/molecules/_progress_step_bar.html.erb @@ -1,8 +1,6 @@ -<% step_name = local_assigns[:step_name] || 'Step' %> -<% step_preposition = local_assigns[:step_preposition] || 'of' %> <% step_description = local_assigns[:step_description] %> -<% label_id = "progress-step-bar--#{step_name}-#{step_preposition}-#{current_step}-#{step_count}-label".downcase %> +<% label_id = "progress-step-bar--#{current_step}-#{step_count}-label".downcase %>
@@ -18,6 +16,6 @@
- <%= "#{step_name} #{current_step} #{step_preposition} #{step_count}: #{step_description}" %> + <%= "#{step_description}" %>
diff --git a/app/views/examples/molecules/_progress_step_bar.html.erb b/app/views/examples/molecules/_progress_step_bar.html.erb index 4243923a..aecabd31 100644 --- a/app/views/examples/molecules/_progress_step_bar.html.erb +++ b/app/views/examples/molecules/_progress_step_bar.html.erb @@ -3,13 +3,12 @@ Required: `current_step`, `step_count` as integers --> -<%= render partial: 'components/molecules/progress_step_bar', locals: { current_step: 3, step_count: 5 } %> +<%= render partial: 'components/molecules/progress_step_bar', locals: { current_step: 2, step_count: 5 } %> -<%= render partial: 'components/molecules/progress_step_bar', locals: { current_step: 3, step_count: 5, step_name: 'Section', step_description: 'Basic Info', step_preposition: 'of' } %> +<%= render partial: 'components/molecules/progress_step_bar', locals: { current_step: 3, step_count: 5, step_description: 'Step 3 of 5: Basic Info' } %>