-
Notifications
You must be signed in to change notification settings - Fork 9
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
Eligibility Index: Veterans - Use Older Adult copy #1706
Conversation
@@ -375,6 +375,8 @@ footer .footer-links li a.footer-link:visited { | |||
|
|||
.btn.btn-lg.btn-primary:focus, | |||
.btn.btn-lg.btn-primary:focus-visible, | |||
.btn.btn-lg:focus, | |||
.btn.btn-lg:focus-visible, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the Login.gov Sign Out button on the Enrollment Success page for the Login.gov flows.
…hange #login to .login
bc424aa
to
93e2e1c
Compare
{% endblocktranslate %} | ||
|
||
{% include "core/includes/modal-trigger.html" with classes="border-0 bg-transparent p-0 login" modal="modal--login-gov" login=True period=True %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thekaveman @angela-tran This modal trigger link opens the modal--login-gov
modal, which is included into the page from the selection-label--senior.html
file. That means that technically, under this design, if a transit agency ONLY offers Veterans benefits, but doesn't offer an Older Adult one, this template will have to be modified to also include the modal code. In other words, the Veteran selection label would require the Older Adult one to also be there.
Alternatively, I could also add this line here:
{% include "eligibility/includes/modal--login-gov-help.html" with id="modal--login-gov" size="modal-lg" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %}
but then this HTML modal code would be duplicated on this page, and since there would be 2 modals with the same id (modal--login-gov
), we'd have to have 2 different IDs pointing to duplicated HTML. Not sure which approach is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, that is tricky. With your second idea - the one about including the login-gov-help modal in the veteran selection-label - maybe the selection-label include templates can have a variable that says whether to include the modal or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrmm - yeah, but that variable would have to live in 0002_data.py
because that's where the radio button selector templates get required for each agency:
And that seems like a little too much for this situation?
Might just be better to go with adding the modal all the time just to make each selection template independent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: ff4ee18
The page now has 2 modals with 2 different IDs. The Veteran selector will have a modal with the ID "modal--login-gov-veterans"
and the trigger will open that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And that seems like a little too much for this situation?
Might just be better to go with adding the modal all the time just to make each selection template independent.
Oh I see. Yeah, I didn't look too deeply at how the variable would get passed in, and what you're saying makes sense. Seems like having 2 modals is our best option here
Ready for review @thekaveman @angela-tran |
benefits/eligibility/templates/eligibility/includes/selection-label--veteran.html
Outdated
Show resolved
Hide resolved
benefits/eligibility/templates/eligibility/includes/selection-label--veteran.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR depends on #1705 to be merged first.
What this PR does
You will need to verify your identity with Login.gov.
, with a link to the Login.gov modal. Both links from the Veteran and the Older Adult radio input open the same exact modal.Includes, CSS changes
#login
id to a class. This is necessary b/c now, for the first time, a page has more than one Login.gov button on it. This requires changing all calls to the#login
id to the class. This affects the Eligibility Start page for Veterans, Eligibility Start page for Older Adults, and the Enrollment Success page.id
field to pass in theid
oflogin
, to show the color Login.gov trigger image. Now, though, there is noid
necessary to pass in. So I removed the field entirely from the includes template. It was actually causing an interesting bug on the radio button field page, where the id of the radio button field was being used in the modal trigger instead - which was resulting in 2 links with the same id. And that was coming up in a11y testing.How to test this PR