Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reCAPTCHA: Eligibility Start #2573

Merged
merged 12 commits into from
Dec 9, 2024

Conversation

machikoyasuda
Copy link
Member

@machikoyasuda machikoyasuda commented Dec 6, 2024

closes #2542

What this PR does

Elig Start: Align everything to col-lg-6, changes bulleted list indent, some spacing

Actually changed visuals CSS:

  • Login.gov button on Mobile: 72px height
image
  • Login.gov button on Desktop: 64px height
image

Refactored code, no visual changes: Media Item

  • From media-item.html template: Removed the now unused heading_wrapper block, which was previously allowing us to change h1/h2/h3 declarations (see more here 93293f8). We now no longer have an "intervening h2" on Eligibility Start, so all the media item headings can go be upgraded to h2s.
  • From media-item.html template: Removed the media-body div and class entirely. No CSS and no need.
  • From the media-item--XXXX--start.html templates, the media-body--details div/class are removed. Now the body is a series of <p>s plus any modals.
  • Now, the media-item gives you a <li> with an <h2 class="h3 pb-1">Item heading</h1> and a body area that can be anything. In use, it is any number of <p> and some hidden modals.
  • The styles for spacing/alignment on the Media Item are declared in the start.html template itself, where the items are displayed. It is a <ul> with <li>s without the list bullet, displayed vertically, and a 16px vertical gap between them. This has been updated on both Elig Start and Enrollment Index/Enrollment Index CalFresh, via Bootstrap utility classes on the parent <ul>.

A11y

Just to make sure I'm not going cross-eyed with all the H1, H2, H3s, I ran the Deque tool to make sure the Headings are in proper order:

image image

Screenshots

Eligibility Start

Medicare Cardholder

Desktop Mobile
image Screen Shot 2024-12-06 at 09 42 36

Older Adult

Desktop Mobile
Screenshot 2024-12-06 at 09-44-25 Older Adult benefit overview Cal-ITP Benefits Screenshot 2024-12-06 at 09-44-12 Older Adult benefit overview Cal-ITP Benefits

CalFresh

Desktop Mobile
Screenshot 2024-12-06 at 09-47-34 CalFresh benefit overview Cal-ITP Benefits Screenshot 2024-12-06 at 09-47-49 CalFresh benefit overview Cal-ITP Benefits

Veteran

Desktop Mobile
Screenshot 2024-12-06 at 09-50-16 Veterans benefit overview Cal-ITP Benefits Screenshot 2024-12-06 at 09-50-24 Veterans benefit overview Cal-ITP Benefits

Agency Card

Desktop Mobile
Screenshot 2024-12-06 at 09-52-57 Agency card overview Cal-ITP Benefits Screenshot 2024-12-06 at 09-53-13 Agency card overview Cal-ITP Benefits

@machikoyasuda machikoyasuda changed the base branch from main to refactor/recaptcha-copy December 6, 2024 00:15
@github-actions github-actions bot added front-end HTML/CSS/JavaScript and Django templates deployment-dev [auto] Changes that will trigger a deploy if merged to dev labels Dec 6, 2024
Copy link

github-actions bot commented Dec 6, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@machikoyasuda machikoyasuda self-assigned this Dec 6, 2024
{% include "core/includes/modal-trigger.html" with modal="modal--identity-verification" text=text period=True %}
</p>
<p>{% translate "For this process you will need:" %}</p>
<ul class="list-disc ms-lg-5 ms-0">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a new utility class, list-disc, which turns an unordered list's bullets into the disc shape. Follows Bootstrap's style (list-unstyled).

ms-lg-5 ms-0: Adds a large margin-left on Desktop and none on Mobile, to make the unordered list look indented.

Comment on lines +446 to +451
/* Sign in with Login.gov (white logo) on System Enrollment Error */

.system-enrollment-error .btn.btn-lg.btn-primary.login {
padding: 10px 0;
}

Copy link
Member Author

@machikoyasuda machikoyasuda Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to just keept his code as is, and will fix it if need be in #2545

Sidenote: This button CSS around the Login.gov buttons is really messy. Hard for me to tell which code is for which button (Modal button vs. Get started with vs. whatever else).. and I wrote it all! Needs a good look over after this is all settled.

@machikoyasuda machikoyasuda marked this pull request as ready for review December 6, 2024 18:56
@machikoyasuda machikoyasuda requested a review from a team as a code owner December 6, 2024 18:56
@machikoyasuda machikoyasuda force-pushed the feat/2542-recaptcha-elig-start branch from 278279f to 00cc296 Compare December 6, 2024 19:03
@machikoyasuda machikoyasuda linked an issue Dec 6, 2024 that may be closed by this pull request
@machikoyasuda machikoyasuda force-pushed the feat/2542-recaptcha-elig-start branch from 066a239 to 00cc296 Compare December 6, 2024 19:28
@machikoyasuda
Copy link
Member Author

This is now ready for review @angela-tran

@@ -16,8 +16,8 @@ <h1>{% translate "You selected a CalFresh Cardholder transit benefit." %}</h1>
{% endblock media-item %}

{% block call-to-action %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting this for the #2540 ticket:

All of these can be {% block call-to-action-button %} instead of overriding all of {% call-to-action %}. {% call-to-action %} only needs to exist for the landing page/agency landing page.

@angela-tran
Copy link
Member

These changes are looking great @machikoyasuda. Great work with keeping the scope focused - it's tricky with how Eligibility Start and Enrollment Index are a little entangled.

After thinking about Kegan's comments, I noticed some further simplification we could do. Let me know what you think, thanks!

@machikoyasuda machikoyasuda merged commit c90f30c into refactor/recaptcha-copy Dec 9, 2024
15 checks passed
@machikoyasuda machikoyasuda deleted the feat/2542-recaptcha-elig-start branch December 9, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev front-end HTML/CSS/JavaScript and Django templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reCAPTCHA: Eligibility Start - Realign page text and button
3 participants