diff --git a/app/views/shared/help/_help_dropdown_instructeur.html.haml b/app/views/shared/help/_help_dropdown_instructeur.html.haml index d1e8ef299..329b80e50 100644 --- a/app/views/shared/help/_help_dropdown_instructeur.html.haml +++ b/app/views/shared/help/_help_dropdown_instructeur.html.haml @@ -1,7 +1,8 @@ -.dropdown.help-dropdown{ data: { controller: 'menu-button' } } - %button.fr-btn.dropdown-button{ data: { menu_button_target: 'button' } } += 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') - #help-menu.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } } - %ul.dropdown-items - = render partial: 'shared/help/dropdown_items/faq_item' - = render partial: 'shared/help/dropdown_items/email_item' + + - menu.with_item do + = render partial: 'shared/help/dropdown_items/faq_item' + - menu.with_item do + = render partial: 'shared/help/dropdown_items/email_item' diff --git a/app/views/shared/help/dropdown_items/_email_item.html.haml b/app/views/shared/help/dropdown_items/_email_item.html.haml index 834fb5924..3eecc2f5e 100644 --- a/app/views/shared/help/dropdown_items/_email_item.html.haml +++ b/app/views/shared/help/dropdown_items/_email_item.html.haml @@ -1,5 +1,5 @@ -%li - = mail_to CONTACT_EMAIL do +%li{ role: 'none' } + = mail_to CONTACT_EMAIL, role: 'menuitem' do %span.icon.mail .dropdown-description %span.help-dropdown-title