diff --git a/app/assets/stylesheets/buttons.scss b/app/assets/stylesheets/buttons.scss index 27580dce0..a09e46812 100644 --- a/app/assets/stylesheets/buttons.scss +++ b/app/assets/stylesheets/buttons.scss @@ -248,7 +248,7 @@ ul.dropdown-items { content: none; } -.help__content.fr-menu ul.fr-menu__list { +.help-content.fr-menu ul.fr-menu__list { text-align: left; font-size: 1rem; @@ -259,7 +259,7 @@ ul.dropdown-items { } } -.help__content.fr-menu ul.fr-menu__list li { +.help-content.fr-menu ul.fr-menu__list li { padding: 0.75rem 1rem; @media (min-width: 62em) { @@ -268,14 +268,15 @@ ul.dropdown-items { } } -.help__content.fr-menu ul.fr-menu__list li:not(:last-child) { +.help-content.fr-menu ul.fr-menu__list li:not(:last-child) { @media (min-width: 62em) { border-bottom: 1px solid $border-grey; } } -.help__content.fr-menu ul.fr-menu__list { - h1, p { +.help-content.fr-menu ul.fr-menu__list { + h1, + p { font-size: inherit; line-height: inherit; } diff --git a/app/views/shared/help/_help_dropdown_dossier.html.haml b/app/views/shared/help/_help_dropdown_dossier.html.haml index b865f6843..a5177e82f 100644 --- a/app/views/shared/help/_help_dropdown_dossier.html.haml +++ b/app/views/shared/help/_help_dropdown_dossier.html.haml @@ -3,7 +3,7 @@ %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 + #help-menu.help-content.fr-collapse.fr-menu - title = dossier.brouillon? ? t("help_dropdown.help_brouillon_title") : t("help_dropdown.help_filled_dossier") %ul.fr-menu__list diff --git a/app/views/shared/help/_help_dropdown_instructeur.html.haml b/app/views/shared/help/_help_dropdown_instructeur.html.haml index 9ebae16df..62ade998f 100644 --- a/app/views/shared/help/_help_dropdown_instructeur.html.haml +++ b/app/views/shared/help/_help_dropdown_instructeur.html.haml @@ -3,7 +3,7 @@ %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 + #help-menu.help-content.fr-collapse.fr-menu %ul.fr-menu__list %li.flex = render partial: 'shared/help/dropdown_items/faq_item' diff --git a/app/views/shared/help/_help_dropdown_procedure.html.haml b/app/views/shared/help/_help_dropdown_procedure.html.haml index 655b90b39..8718d1ea0 100644 --- a/app/views/shared/help/_help_dropdown_procedure.html.haml +++ b/app/views/shared/help/_help_dropdown_procedure.html.haml @@ -3,7 +3,7 @@ %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 + #help-menu.help-content.fr-collapse.fr-menu %ul.fr-menu__list - if procedure.service.present? %li.flex diff --git a/spec/system/help_spec.rb b/spec/system/help_spec.rb index 8c845da6f..1fd7f86bc 100644 --- a/spec/system/help_spec.rb +++ b/spec/system/help_spec.rb @@ -16,7 +16,7 @@ describe 'Getting help:' do expect(page).to have_help_menu end - within('.help__content') do + within('.help-content') do expect(page).to have_content(procedure.service.email) expect(page).to have_content(procedure.service.telephone) expect(page).to have_link(nil, href: I18n.t("links.common.faq.url")) @@ -49,7 +49,7 @@ describe 'Getting help:' do expect(page).to have_help_menu end - within('.help__content') do + within('.help-content') do expect(page).to have_content(dossier.procedure.service.email) expect(page).to have_content(dossier.procedure.service.telephone) expect(page).to have_link(nil, href: I18n.t("links.common.faq.url")) @@ -67,7 +67,7 @@ describe 'Getting help:' do expect(page).to have_help_menu end - within('.help__content') do + within('.help-content') do expect(page).to have_link(nil, href: messagerie_dossier_path(dossier)) expect(page).to have_link(nil, href: I18n.t("links.common.faq.url")) end