Change help menu design pattern (instructor pages)

This commit is contained in:
Corinne Durrmeyer 2024-08-05 14:06:51 +02:00
parent 33eece94fd
commit bc95b5b323
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
2 changed files with 13 additions and 10 deletions

View file

@ -1,8 +1,11 @@
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: { class: ['help-dropdown']}, menu_options: { id: "help-menu" }) do |menu| .fr-translate.fr-nav
- menu.with_button_inner_html do .fr-nav__item
= t('help') %button.help-btn.fr-translate__btn.fr-btn{ "aria-controls" => "help-menu", "aria-expanded" => "false" }
= t('help')
- menu.with_item do #help-menu.help__content.fr-collapse.fr-menu
= render partial: 'shared/help/dropdown_items/faq_item' %ul.fr-menu__list
- menu.with_item do %li.flex
= render partial: 'shared/help/dropdown_items/email_item' = render partial: 'shared/help/dropdown_items/faq_item'
%li
= render partial: 'shared/help/dropdown_items/email_item'

View file

@ -1,5 +1,5 @@
= mail_to CONTACT_EMAIL, role: 'menuitem' do = mail_to CONTACT_EMAIL, class: 'flex' do
%span.fr-icon-mail-fill.fr-text-action-high--blue-france{ "aria-hidden": "true" } %span.fr-icon-mail-fill.fr-text-action-high--blue-france{ "aria-hidden": "true" }
.fr-pl-1w .fr-pl-1w
%h1.fr-text--sm= t('help_dropdown.technical_contact_title') %h1= t('help_dropdown.technical_contact_title')
%p.fr-text--sm= t('help_dropdown.technical_contact_description', contact_email: CONTACT_EMAIL) %p= t('help_dropdown.technical_contact_description', contact_email: CONTACT_EMAIL)