correctif(a11y): #8168, ajout d'une option pour forcer l'usage d'une classe en fonction dy type de balise rendu par SimpleFormatComponent

This commit is contained in:
Martin 2023-02-22 09:29:40 +01:00 committed by mfo
parent c8e9b2f008
commit 571268dd77

View file

@ -65,12 +65,13 @@
- if service.present?
.fr-footer__content
%p.fr-footer__content-desc
= I18n.t('users.procedure_footer.managed_by.header')
%div{ lang: :fr }
%p= "#{service.nom}, #{service.organisme},"
= render SimpleFormatComponent.new(service.adresse)
= render partial: "shared/footer_content_list"
%span{ lang: :fr }= "#{service.nom}, #{service.organisme},"
%div{ lang: :fr }
= render SimpleFormatComponent.new(service.adresse, class_names_map: {paragraph: 'fr-footer__content-desc'})
= render partial: "shared/footer_content_list"
.fr-footer__bottom
= render partial: 'users/general_footer_row', locals: { dossier: dossier }