correctif(checkbox_component): ajoute le labelledby_id au <label> des checkbox unique car elles n'ont pas de de ChampLabelComponent (inlinées)

This commit is contained in:
Martin 2023-08-17 17:18:32 +02:00
parent 40d1de22ea
commit 3697d8335d

View file

@ -4,5 +4,6 @@
{ required: @champ.required?, id: @champ.input_id, checked: @champ.true?, aria: { describedby: @champ.describedby_id }, class: class_names('required' => @champ.required?)},
'true',
'false'
%label.fr-label{ for: @champ.input_id }
%label.fr-label{ for: @champ.input_id, id: @champ.labelledby_id }
= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at