From 4b256c1aa1df3f05b4466d3ea20b935a89aa7ee7 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 4 Sep 2024 12:53:57 -0400 Subject: [PATCH] Fix regression for email language preference label --- config/initializers/simple_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb index 27aaa3cd096..11ba025dee7 100644 --- a/config/initializers/simple_form.rb +++ b/config/initializers/simple_form.rb @@ -92,7 +92,7 @@ item_wrapper_tag: nil, item_label_class: item_label_class do |b| b.use :html5_no_aria_required - b.optional :label_text, wrap_with: { tag: 'legend', class: legend_class } + b.optional :label, wrap_with: { tag: 'legend', class: legend_class } b.optional :hint, wrap_with: { tag: 'div', class: 'usa-hint margin-bottom-05' } b.wrapper :grid_row, tag: :div, class: 'grid-row margin-bottom-neg-1' do |gr| gr.wrapper :grid_column_radios, tag: :div, class: 'grid-col-fill' do |gc|