Skip to content

Commit

Permalink
Merge pull request #8530 from cfpb/ans_legend
Browse files Browse the repository at this point in the history
Replace `a-legend` with `h4`
  • Loading branch information
anselmbradford authored Aug 6, 2024
2 parents 473713f + ced0aee commit 874c80d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions cfgov/hmda/jinja2/hmda/hmda-explorer-controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
content-l__col-1">
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Records included
</legend>
{% for radio in form.records %}
Expand All @@ -49,7 +49,7 @@
</div>
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Variable descriptions
</legend>
{% for radio in form.field_descriptions %}
Expand Down
4 changes: 2 additions & 2 deletions cfgov/tccp/jinja2/tccp/includes/filter_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">Features</legend>
<legend class="h4">Features</legend>

{{ render_field(form.small_institution, "checkbox") }}

Expand All @@ -47,7 +47,7 @@

<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">Rewards</legend>
<legend class="h4">Rewards</legend>

{{ form.rewards }}
</fieldset>
Expand Down
2 changes: 1 addition & 1 deletion cfgov/tccp/jinja2/tccp/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h2>

<div class="o-form__group">
<fieldset class="o-form__fieldset o-form__fieldset--helpers">
<legend class="a-legend">
<legend class="h4">
I’m looking for a card that will help me...
</legend>
{{ form.situations }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
content-l__col-2-3">
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Date range
</legend>
<div class="content-l">
Expand Down
24 changes: 12 additions & 12 deletions cfgov/wellbeing/jinja2/wellbeing/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h2>{{ _('Here’s how it works:') }}</h2>
<h2>{{ _('Part 1: How well does this statement describe you or your situation?') }}</h2>
<div class="o-well">
<fieldset class="o-form__fieldset o-scale" id="question_1">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I could handle a major unexpected expense') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }}</div>
Expand Down Expand Up @@ -191,7 +191,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_2">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I am securing my financial future') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }} </div>
Expand Down Expand Up @@ -264,7 +264,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_3">
<h3 class="a-legend">
<h3 class="h4">
{{ _('Because of my money situation, I feel like I will never have the things I want in life') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }} </div>
Expand Down Expand Up @@ -337,7 +337,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_4">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I can enjoy life because of the way I’m managing my money') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }} </div>
Expand Down Expand Up @@ -410,7 +410,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_5">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I am just getting by financially') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }} </div>
Expand Down Expand Up @@ -483,7 +483,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_6">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I am concerned that the money I have or will save won’t last') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement describes me') }} </div>
Expand Down Expand Up @@ -561,7 +561,7 @@ <h3 class="a-legend">
<h2>{{ _('Part 2: How often does this statement apply to you?') }}</h2>
<div class="o-well">
<fieldset class="o-form__fieldset o-scale" id="question_7">
<h3 class="a-legend">
<h3 class="h4">
{{ _('Giving a gift for a wedding, birthday or other occasion would put a strain on my finances for the month') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement applies to me') }}</div>
Expand Down Expand Up @@ -634,7 +634,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_8">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I have money left over at the end of the month') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement applies to me') }}</div>
Expand Down Expand Up @@ -706,7 +706,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_9">
<h3 class="a-legend">
<h3 class="h4">
{{ _('I am behind with my finances') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement applies to me') }}</div>
Expand Down Expand Up @@ -779,7 +779,7 @@ <h3 class="a-legend">
</div>
</fieldset>
<fieldset class="o-form__fieldset o-scale" id="question_10">
<h3 class="a-legend">
<h3 class="h4">
{{ _('My finances control my life') }}
</h3>
<div class="o-scale_answer-prefix">{{ _('This statement applies to me') }}</div>
Expand Down Expand Up @@ -858,7 +858,7 @@ <h2>{{ _('About you') }}</h2>
<div class="o-well">
<div class="o-form__group">
<fieldset class="o-form__fieldset" id="age">
<h3 class="a-legend">
<h3 class="h4">
{{ _('Select your age group. This changes the scoring calculation.') }}
</h3>
<ul class="m-list m-list--unstyled content-l">
Expand Down Expand Up @@ -897,7 +897,7 @@ <h3 class="a-legend">
</div>
<div>
<fieldset class="o-form__fieldset" id="method">
<h3 class="a-legend">
<h3 class="h4">
{{ _('Select how you completed the questionnaire. This changes the scoring calculation.') }}
</h3>
<ul class="m-list m-list--unstyled content-l">
Expand Down
4 changes: 2 additions & 2 deletions test/unit_tests/js/organisms/FilterableListControls-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const HTML_SNIPPET = `
content-l__col-1-3">
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Category
</legend>
<ul class="m-list m-list--unstyled">
Expand Down Expand Up @@ -119,7 +119,7 @@ const HTML_SNIPPET = `
content-l__col-1">
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Date range
</legend>
<div class="content-l">
Expand Down

0 comments on commit 874c80d

Please sign in to comment.