correctif(a11y): #8105, pour les callout, utilise un div wrappant du contenu html

This commit is contained in:
Martin 2023-02-22 09:09:07 +01:00 committed by mfo
parent 4fd799390b
commit c8e9b2f008
7 changed files with 19 additions and 15 deletions

View file

@ -1,6 +1,6 @@
= render Dsfr::CalloutComponent.new(title: t("views.prefill_descriptions.edit.json_description_title"), theme: :success, icon: "fr-icon-layout-grid-fill") do |c|
- c.with_body do
= t("views.prefill_descriptions.edit.json_description_info")
- c.with_html_body do
%p= t("views.prefill_descriptions.edit.json_description_info")
%pre
%code.code-block
= prefill_json_description_url(procedure.path)

View file

@ -5,8 +5,8 @@
- if prefill_description.prefilled_champs.any?
= render Dsfr::CalloutComponent.new(title: t("views.prefill_descriptions.edit.prefill_link_title"), theme: theme, icon: icon) do |c|
- c.with_body do
= body
- c.with_html_body do
%p= body
%pre
%code.code-block
= prefill_description.prefill_link

View file

@ -3,8 +3,8 @@
- if prefill_description.prefilled_champs.any?
= render Dsfr::CalloutComponent.new(title: t("views.prefill_descriptions.edit.prefill_query_title"), theme: :success, icon: "fr-icon-code-box-fill") do |c|
- c.with_body do
= t("views.prefill_descriptions.edit.prefill_query_info")
- c.with_html_body do
%p= t("views.prefill_descriptions.edit.prefill_query_info")
%pre
%code.code-block
= prefill_description.prefill_query