amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche

amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche
This commit is contained in:
Martin 2023-06-26 11:47:20 +02:00 committed by mfo
parent e859665ea4
commit c86c1efcb7
8 changed files with 19 additions and 25 deletions

View file

@ -49,7 +49,6 @@ class Dsfr::InputComponent < ApplicationComponent
object.class.human_attribute_name(@attribute)
end
# kind of input helpers
def password?
@input_type == :password_field
@ -64,6 +63,4 @@ class Dsfr::InputComponent < ApplicationComponent
end
private
end

View file

@ -68,7 +68,7 @@ module Dsfr
end
def describedby_id
dom_id(@champ, :error_messages)
dom_id(@champ, :error_full_messages)
end
def errors_on_another_attribute?
@ -80,7 +80,7 @@ module Dsfr
end
# errors helpers
def error_messages
def error_full_messages
errors.full_messages_for(attribute_or_rich_body)
end