From a48a8b60812b27d6843bee59b689040cd156f077 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 22 Aug 2022 17:55:39 +0200 Subject: [PATCH] feat(title): avoid title issues --- app/assets/stylesheets/common.scss | 2 +- app/assets/stylesheets/france-connect-login.scss | 1 - app/views/shared/_france_connect_login.html.haml | 2 +- app/views/super_admins/sessions/new.html.haml | 2 +- app/views/users/registrations/new.html.haml | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 19cfe08b0..db970ca7c 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -37,7 +37,7 @@ dt { } h1 { - // font-size: 36px; + font-size: 36px; font-weight: bold; } diff --git a/app/assets/stylesheets/france-connect-login.scss b/app/assets/stylesheets/france-connect-login.scss index f843206ae..bac713ee1 100644 --- a/app/assets/stylesheets/france-connect-login.scss +++ b/app/assets/stylesheets/france-connect-login.scss @@ -4,7 +4,6 @@ .france-connect-login { h2 { color: $black; - font-size: 24px; } } diff --git a/app/views/shared/_france_connect_login.html.haml b/app/views/shared/_france_connect_login.html.haml index 4279ff2d7..b4fa15a5d 100644 --- a/app/views/shared/_france_connect_login.html.haml +++ b/app/views/shared/_france_connect_login.html.haml @@ -1,6 +1,6 @@ - if FranceConnectService.enabled? .france-connect-login - %h2.important-header + %h2.fr-h6.mb-0 = t('views.shared.france_connect_login.title') %p = t('views.shared.france_connect_login.description') diff --git a/app/views/super_admins/sessions/new.html.haml b/app/views/super_admins/sessions/new.html.haml index be1d96f87..47dd611fb 100644 --- a/app/views/super_admins/sessions/new.html.haml +++ b/app/views/super_admins/sessions/new.html.haml @@ -4,7 +4,7 @@ .auth-form.sign-in-form = form_for SuperAdmin.new, url: super_admin_session_path, html: { class: "form" } do |f| - %h1 Connectez-vous + %h1.fr-h2 Connectez-vous = f.label :email, "Email (nom@site.com)" = f.text_field :email, type: :email, autocomplete: 'username', autofocus: true diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index 6661623f2..40339d754 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -3,7 +3,7 @@ .auth-form = devise_error_messages! = form_for resource, url: user_registration_path, html: { class: "form" } do |f| - %h1= t('views.registrations.new.title', name: APPLICATION_NAME) + %h1.fr-h2= t('views.registrations.new.title', name: APPLICATION_NAME) = render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }