From bed603c5d550ce1cb4348551ed63062d31060e96 Mon Sep 17 00:00:00 2001 From: Soufiane Date: Thu, 24 Aug 2023 15:50:05 +0200 Subject: [PATCH] Fix design of sign in and signature modal [SCI-9109] (#6074) --- .../stylesheets/shared_styles/elements/input_fields.scss | 6 +++++- app/views/users/sessions/new.html.erb | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/shared_styles/elements/input_fields.scss b/app/assets/stylesheets/shared_styles/elements/input_fields.scss index d350c77a2..bdb53169e 100644 --- a/app/assets/stylesheets/shared_styles/elements/input_fields.scss +++ b/app/assets/stylesheets/shared_styles/elements/input_fields.scss @@ -45,8 +45,12 @@ } .sci-input-field[type=password] { - font-family: Arial; + font-family: "SN Inter", "Open Sans", Arial, Helvetica, sans-serif; letter-spacing: .075em; + + &::placeholder { + letter-spacing: initial; + } } .sn-icon { diff --git a/app/views/users/sessions/new.html.erb b/app/views/users/sessions/new.html.erb index e9951ad4b..306d07a1f 100644 --- a/app/views/users/sessions/new.html.erb +++ b/app/views/users/sessions/new.html.erb @@ -14,12 +14,12 @@ <% unless Rails.application.config.x.disable_local_passwords %> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> -
+
<%= f.label :email, t("devise.sessions.new.email_field") %> <%= f.email_field :email, autofocus: true, class: "form-control sci-input-field", placeholder: t("devise.sessions.new.email_placeholder") %>
-
+
<%= f.label :password, t("devise.sessions.new.password_field") %> <%= f.password_field :password, autocomplete: "off", class: "form-control sci-input-field", placeholder: t("devise.sessions.new.password_placeholder") %>