Change help menu design pattern (instructor pages)
This commit is contained in:
parent
33eece94fd
commit
bc95b5b323
2 changed files with 13 additions and 10 deletions
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue