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|
- menu.with_button_inner_html do
= t('help')
.fr-translate.fr-nav
.fr-nav__item
%button.help-btn.fr-translate__btn.fr-btn{ "aria-controls" => "help-menu", "aria-expanded" => "false" }
= t('help')
- menu.with_item do
= render partial: 'shared/help/dropdown_items/faq_item'
- menu.with_item do
= render partial: 'shared/help/dropdown_items/email_item'
#help-menu.help__content.fr-collapse.fr-menu
%ul.fr-menu__list
%li.flex
= 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" }
.fr-pl-1w
%h1.fr-text--sm= t('help_dropdown.technical_contact_title')
%p.fr-text--sm= t('help_dropdown.technical_contact_description', contact_email: CONTACT_EMAIL)
%h1= t('help_dropdown.technical_contact_title')
%p= t('help_dropdown.technical_contact_description', contact_email: CONTACT_EMAIL)