feat(Champ.annuaire_education): add missing fr-input
class name
This commit is contained in:
parent
4d90b1f662
commit
c22438fb75
2 changed files with 8 additions and 3 deletions
|
@ -2,4 +2,11 @@ class EditableChamp::AnnuaireEducationComponent < EditableChamp::ComboSearchComp
|
||||||
def dsfr_input_classname
|
def dsfr_input_classname
|
||||||
'fr-input'
|
'fr-input'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def react_input_opts
|
||||||
|
opts = input_opts(id: @champ.input_id, required: @champ.required?, aria: { describedby: @champ.describedby_id })
|
||||||
|
opts[:className] = "#{opts.delete(:class)} fr-mt-1w"
|
||||||
|
|
||||||
|
opts
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,5 @@
|
||||||
= @form.hidden_field :value
|
= @form.hidden_field :value
|
||||||
= @form.hidden_field :external_id
|
= @form.hidden_field :external_id
|
||||||
= react_component("ComboAnnuaireEducationSearch",
|
= react_component("ComboAnnuaireEducationSearch",
|
||||||
required: @champ.required?,
|
**react_input_opts,
|
||||||
id: @champ.input_id,
|
|
||||||
describedby: @champ.describedby_id,
|
|
||||||
**react_combo_props)
|
**react_combo_props)
|
||||||
|
|
Loading…
Add table
Reference in a new issue