From 27e7bc1dbd3efe845e7a5226bec731958c65905c Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Thu, 27 Jul 2023 11:02:00 +0200 Subject: [PATCH] =?UTF-8?q?Deux=20menus=20deroulants=20li=C3=A9s=20au=20DS?= =?UTF-8?q?FR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../linked_drop_down_list_component.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/editable_champ/linked_drop_down_list_component/linked_drop_down_list_component.html.haml b/app/components/editable_champ/linked_drop_down_list_component/linked_drop_down_list_component.html.haml index 4ed612278..bbc11174f 100644 --- a/app/components/editable_champ/linked_drop_down_list_component/linked_drop_down_list_component.html.haml +++ b/app/components/editable_champ/linked_drop_down_list_component/linked_drop_down_list_component.html.haml @@ -1,5 +1,5 @@ - if @champ.options? - = @form.select :primary_value, @champ.primary_options, {}, required: @champ.required?, id: @champ.input_id, aria: { describedby: @champ.describedby_id } + = @form.select :primary_value, @champ.primary_options, {}, required: @champ.required?, class: 'fr-select', id: @champ.input_id, aria: { describedby: @champ.describedby_id } - if @champ.has_secondary_options_for_primary? .secondary = @form.label :secondary_value, for: "#{@champ.input_id}-secondary" do @@ -7,6 +7,6 @@ - if @champ.drop_down_secondary_description.present? .notice{ id: "#{@champ.describedby_id}-secondary" } = render SimpleFormatComponent.new(@champ.drop_down_secondary_description, allow_a: true) - = @form.select :secondary_value, @champ.secondary_options[@champ.primary_value], {}, required: @champ.required?, id: "#{@champ.input_id}-secondary", aria: { describedby: "#{@champ.describedby_id}-secondary" } + = @form.select :secondary_value, @champ.secondary_options[@champ.primary_value], {}, required: @champ.required?, class: 'fr-select', id: "#{@champ.input_id}-secondary", aria: { describedby: "#{@champ.describedby_id}-secondary" } - else = @form.hidden_field :secondary_value, value: ''