Skip to content

Commit

Permalink
Chore: normalize modal ID pattern (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Aug 3, 2023
2 parents e155313 + fd7a0d6 commit cad603a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions benefits/core/templates/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

{% block call-to-action %}
{% translate "core.pages.index.button" as trigger_text %}
{% include "core/includes/modal-trigger.html" with id="agency-selector" classes="btn btn-lg btn-primary" text=trigger_text %}
{% include "core/includes/modal--agency-selector.html" with id="agency-selector" %}
{% include "core/includes/modal-trigger.html" with id="modal--agency-selector" classes="btn btn-lg btn-primary" text=trigger_text %}
{% include "core/includes/modal--agency-selector.html" with id="modal--agency-selector" %}
{% endblock call-to-action %}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<p>
{% translate "eligibility.pages.start.bankcard.text" %}
{% translate "eligibility.pages.start.modal.title" as trigger_text %}
{% include "core/includes/modal-trigger-link.html" with id="contactless-modal" text=trigger_text %}
{% include "core/includes/modal-trigger-link.html" with id="modal--contactless" text=trigger_text %}
</p>
</div>

{% include "eligibility/includes/modal--contactless.html" with id="contactless-modal" size="modal-lg" %}
{% include "eligibility/includes/modal--contactless.html" with id="modal--contactless" size="modal-lg" %}
{% endblock body %}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p>
{% translate "eligibility.pages.start.senior.start_item.details" %}
{% translate "eligibility.pages.start.senior.help.link_text" as trigger_text %}
{% include "core/includes/modal-trigger-link.html" with id="identity-verification-help" text=trigger_text %}
{% include "core/includes/modal-trigger-link.html" with id="modal--identity-verification" text=trigger_text %}
</p>
<div class="media-body--items">
<p>{% translate "eligibility.pages.start.senior.start_item.secondary_details" %}</p>
Expand All @@ -23,5 +23,5 @@
</div>
</div>

{% include "eligibility/includes/modal--senior-start-help.html" with size="modal-lg" id="identity-verification-help" %}
{% include "eligibility/includes/modal--senior-start-help.html" with size="modal-lg" id="modal--identity-verification" %}
{% endblock body %}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
{% translate "eligibility.pages.index.senior.description" %}

<!-- Button to trigger modal -->
<button id="login" type="button" class="border-0 bg-transparent p-0" data-bs-toggle="modal" data-bs-target="#login-gov-help">
<button id="login" type="button" class="border-0 bg-transparent p-0" data-bs-toggle="modal" data-bs-target="#modal--login-gov">
<span class="fallback-text color-logo">Login.gov</span>
</button>.
</button>
.

{% include "eligibility/includes/modal--senior-help.html" with id="login-gov-help" size="modal-lg" %}
{% include "eligibility/includes/modal--senior-help.html" with id="modal--login-gov" size="modal-lg" %}
{% endblock description %}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<div class="media-body--details">
<p>
{% translate "enrollment.pages.index.link_card_item.p[0]s[0]" %}
{% include "core/includes/modal-trigger-link.html" with id="littlepay-modal" text="Littlepay" %}
{% include "core/includes/modal-trigger-link.html" with id="modal--littlepay" text="Littlepay" %}
{% translate "enrollment.pages.index.link_card_item.p[0]s[1]" %}
</p>
<p>{% translate "enrollment.pages.index.link_card_item.p[1]s[0]" %}</p>
</div>

{% include "enrollment/includes/modal--littlepay.html" with id="littlepay-modal" size="modal-md" %}
{% include "enrollment/includes/modal--littlepay.html" with id="modal--littlepay" size="modal-md" %}
{% endblock body %}

0 comments on commit cad603a

Please sign in to comment.