Skip to content

Commit

Permalink
Refactor(reCAPTCHA): remove icons (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Dec 5, 2024
2 parents b58eb16 + c3f63cc commit ea9f790
Show file tree
Hide file tree
Showing 23 changed files with 15 additions and 71 deletions.
4 changes: 0 additions & 4 deletions benefits/core/templates/core/includes/media-item.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<li class="media d-flex align-items-stretch w-auto">
<div class="media-line">
{% block icon %}
{% endblock icon %}
</div>
<div class="media-body">
{% block heading_wrapper %}
<{{ heading_tag|default:"h3" }} class="media-body--heading h3">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "core/includes/media-item.html" %}
{% load i18n %}

{% block icon %}
{% include "core/includes/icon.html" with name="bankcardcheck" %}
{% endblock icon %}

{% block heading %}
{% translate "Your contactless card details" %}
{% endblock heading %}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "eligibility/includes/media-item--idcardcheck.html" %}
{% extends "core/includes/media-item.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "eligibility/includes/media-item--idcardcheck.html" %}
{% extends "core/includes/media-item.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "eligibility/includes/media-item--idcardcheck.html" %}
{% extends "core/includes/media-item.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "eligibility/includes/media-item--idcardcheck.html" %}
{% extends "core/includes/media-item.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "eligibility/includes/media-item--idcardcheck.html" %}
{% extends "core/includes/media-item.html" %}

{% load i18n %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected a CalFresh Cardholder transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--login-gov.html" %}
{% include "eligibility/includes/media-item--identification--start--login-gov.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected an Agency Card transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--cst-agency-card.html" %}
{% include "eligibility/includes/media-item--identification--start--cst-agency-card.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected a Medicare Cardholder transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--medicare.html" %}
{% include "eligibility/includes/media-item--identification--start--medicare.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected a Courtesy Card transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--mst-agency-card.html" %}
{% include "eligibility/includes/media-item--identification--start--mst-agency-card.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected a Reduced Fare Mobility ID transit benefit." %}</
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--sbmtd-agency-card.html" %}
{% include "eligibility/includes/media-item--identification--start--sbmtd-agency-card.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected an Older Adult transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--login-gov.html" %}
{% include "eligibility/includes/media-item--identification--start--login-gov.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% translate "You selected a Veteran transit benefit." %}</h1>
{% endblock headline %}

{% block media-item %}
{% include "eligibility/includes/media-item--idcardcheck--start--login-gov.html" %}
{% include "eligibility/includes/media-item--identification--start--login-gov.html" %}
{% endblock media-item %}

{% block call-to-action %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/eligibility/templates/eligibility/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2 class="media-title h2-sm-p">{% translate "You will need a few items to conti
<ul class="media-list mx-0 px-0 d-flex justify-content-center flex-column">
{% block media-item %}
{% endblock media-item %}
{% include "eligibility/includes/media-item--bankcardcheck--start.html" %}
{% include "eligibility/includes/media-item--contactless-card--start.html" %}
</ul>
</div>
{% endblock inner-content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "core/includes/media-item.html" %}
{% load i18n %}

{% block icon %}
{% include "core/includes/icon.html" with name="bankcardcheck" %}
{% endblock icon %}

{% block heading %}
{% translate "The next step is to connect your contactless card to your transit benefit" %}
{% endblock heading %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "core/includes/media-item.html" %}
{% load i18n %}

{% block icon %}
{% include "core/includes/icon.html" with name="bankcardcheck" %}
{% endblock icon %}

{% block heading_wrapper %}
{% with heading_tag="h2" %}{{ block.super }}{% endwith %}
{% endblock heading_wrapper %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block media-items %}
<div class="col-12 col-sm-12 col-lg-8">
<ul class="media-list mb-5 mx-0 px-0 d-flex justify-content-center flex-column">
{% include "enrollment/includes/media-item--bankcardcheck--index--calfresh.html" %}
{% include "enrollment/includes/media-item--contactless-card--index--calfresh.html" %}
</ul>
</div>
{% endblock media-items %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/enrollment/templates/enrollment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="pb-lg-8 pb-4">
{% block media-items %}
<div class="col-12 col-sm-12 col-lg-8">
<ul class="media-list mx-0 px-0 d-flex justify-content-center flex-column">
{% include "enrollment/includes/media-item--bankcardcheck--index.html" %}
{% include "enrollment/includes/media-item--contactless-card--index.html" %}
</ul>
</div>
{% endblock media-items %}
Expand Down
6 changes: 0 additions & 6 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,6 @@ footer .footer-links li a.footer-link:visited {
margin-bottom: calc(64rem / 16);
}

.media-list .media .media-line .icon {
width: var(--media-item-icon-size);
height: var(--media-item-icon-size);
margin-right: var(--media-item-icon-margin);
}

.media-list-icon-left-margin {
margin-left: calc(
var(--media-item-icon-size) + var(--media-item-icon-margin)
Expand Down
12 changes: 0 additions & 12 deletions benefits/static/img/icon/bankcardcheck.svg

This file was deleted.

15 changes: 0 additions & 15 deletions benefits/static/img/icon/idcardcheck.svg

This file was deleted.

0 comments on commit ea9f790

Please sign in to comment.