Change help menu design pattern (offline pages)

This commit is contained in:
Corinne Durrmeyer 2024-08-05 14:23:16 +02:00
parent bc95b5b323
commit bbfcb689d3
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -1,9 +1,12 @@
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: { class: ['help-dropdown']}, menu_options: { id: "help-menu" }) do |menu|
- menu.with_button_inner_html do
.fr-translate.fr-nav
.fr-nav__item
%button.help-btn.fr-translate__btn.fr-btn{ "aria-controls" => "help-menu", "aria-expanded" => "false" }
= t('help')
#help-menu.help__content.fr-collapse.fr-menu
%ul.fr-menu__list
- if procedure.service.present?
- menu.with_item do
%li.flex
= render partial: 'shared/help/dropdown_items/service_item', locals: { service: procedure.service, title: t('help_dropdown.procedure_title') }
- menu.with_item do
%li.flex
= render partial: 'shared/help/dropdown_items/faq_item'