Merge pull request #10622 from demarches-simplifiees/a11y-fix-faq-page

Accessibilité: Amélioration de la page FAQ
This commit is contained in:
Colin Darie 2024-07-22 09:06:59 +00:00 committed by GitHub
commit d4a9b63b00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,8 @@
.fr-collapse{ id: "accordion-#{category}-#{index}" }
- description = t(:description, scope: [:faq, :subcategories, subcategory], default: nil) # i18n-tasks-use t("faq.subcategories.#{subcategory}.description")
%p= description if description.present?
- if description
%p= description
%ul
- faqs.each do |faq|