LG-6387: Make CTA button more prominent#6986
Conversation
Add text, styling, and HTML for "First time using Login.gov?"
Changelog: Improvements, User experience, Make CTA button more prominent [LG-6387]
b0b9f24 to
6738215
Compare
e9d0d9a to
1eddbf3
Compare
1eddbf3 to
825671e
Compare
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-2' %> | ||
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-3' %> | ||
| <h2 class='margin-top-1 margin-bottom-3 text-normal text-center text-center--line text-bold border-bottom'> | ||
| <span class='padding-left-1 padding-right-1 bg-white' ><%= t('headings.create_account_with_sp.cta', app_name: APP_NAME) %></span> |
There was a problem hiding this comment.
maybe we could use the -x- styles for left + right?
| <span class='padding-left-1 padding-right-1 bg-white' ><%= t('headings.create_account_with_sp.cta', app_name: APP_NAME) %></span> | |
| <span class='padding-x-1 bg-white' ><%= t('headings.create_account_with_sp.cta', app_name: APP_NAME) %></span> |
There was a problem hiding this comment.
yeah this is a lot better. thanks!
| <div class='margin-bottom-4'> | ||
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-2' %> | ||
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-3' %> | ||
| <h2 class='margin-top-1 margin-bottom-3 text-normal text-center text-center--line text-bold border-bottom'> |
There was a problem hiding this comment.
Minor: I saw some commits which moved styles from the CSS to utility classes. I might actually be more in favor of the opposite, so that we can treat this more as a self-contained component.
e.g.
<h2 class="separator-heading">
<span class="separator-heading__text">
<%= t('headings.create_account_with_sp.cta', app_name: APP_NAME) %>
</span>
</h2>| <div class='margin-bottom-4'> | ||
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-2' %> | ||
| <%= f.submit t('links.next'), full_width: true, big: false, wide: false, class: 'margin-bottom-3' %> | ||
| <h2 class='margin-top-1 margin-bottom-3 text-normal text-center text-center--line text-bold border-bottom'> |
There was a problem hiding this comment.
This has both text-normal and text-bold classes. Based on the Figma design, I'm assuming it should only be text-bold.
| .text-center--line { | ||
| border-bottom-color: color('primary-light'); | ||
| line-height: 0.1em; | ||
| } |
There was a problem hiding this comment.
Couple discrepancies I'm noticing between the implementation and Figma reference:
- Font size: 22px vs. 18px in the Figma
- Padding: 0.5rem vs. 1rem in the Figma
| .text-center--line { | |
| border-bottom-color: color('primary-light'); | |
| line-height: 0.1em; | |
| } | |
| .text-center--line { | |
| border-bottom-color: color('primary-light'); | |
| line-height: 0.1em; | |
| font-size: 1.125rem; | |
| span { | |
| @include u-padding-x(2); | |
| } | |
| } |
|
|
||
| .text-center--line { | ||
| border-bottom-color: color('primary-light'); | ||
| line-height: 0.1em; |
There was a problem hiding this comment.
Is 0.1em significant? Would it make any difference if it were 0 (collapse all line-height) or 1px (match the size of the border)?
|
|
||
| .text-center--line { | ||
| border-bottom-color: color('primary-light'); | ||
| line-height: 0.1em; |
94603d1 to
5a541dc
Compare


This PR is looking to decrease confusion of where the "Create your account" button is located.
Context:
The issue has been raised that some partner sites direct you to the Login.gov front-door to click "Create an account" after clicking "Create a new account" on their respective site, requiring users to do the same action twice.
The secure.login.gov IdP landing page features username and password fields for users to sign in and create an account. There have been notes from our partners and agencies like CA.gov who have expressed concerns about the visibility of the “Create account” CTA within the Login.gov “front-door” sign-in landing page.
Proposed solution: Improve layout of the front door sign-in page to reduce user confusion of options to select