Skip to content

Commit b2c163d

Browse files
committed
fix(frontend) fix heading structure
1 parent 22c1ce2 commit b2c163d

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

frontend/app/routes/estimator/step-income.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
175175
<FetcherErrorSummary fetcherKey={fetcherKey}>
176176
<fetcher.Form method="post" noValidate>
177177
<div className="space-y-6">
178-
<h2>
178+
<p>
179179
{isMarried
180180
? t('estimator:income.form-instructions.married', { year: previousIncomeTaxReturnYear })
181181
: t('estimator:income.form-instructions.single', { year: previousIncomeTaxReturnYear })}
182-
</h2>
183-
<h3 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.your-info')}</h3>
182+
</p>
183+
<h2 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.your-info')}</h2>
184184
<CurrencyField
185185
name="individual-net-income"
186186
label={t('estimator:income.fields.net-income.label')}
@@ -321,7 +321,7 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
321321

322322
{isMarried && (
323323
<>
324-
<h3 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.partner-info')}</h3>
324+
<h2 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.partner-info')}</h2>
325325
<CurrencyField
326326
name="partner-net-income"
327327
label={t('estimator:income.fields.partner.net-income.label')}

frontend/e2e/__snapshots__/estimator/step-income.spec.ts/Navigating-to-en-income-renders-the-english-income-page-1.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<div>
1313
<form novalidate="" data-discover="true" action="/en/income" method="post">
1414
<div class="space-y-6">
15-
<h2>
15+
<p>
1616
To estimate your benefits, we will need the following information from
1717
your 2024 tax return:
18-
</h2>
19-
<h3 class="font-lato mb-4 text-2xl font-bold">Your information</h3>
18+
</p>
19+
<h2 class="font-lato mb-4 text-2xl font-bold">Your information</h2>
2020
<div id="input-text-field-«Rdmlj5»" class="space-y-2">
2121
<label class="block" id="input-text-field-«Rdmlj5»-label"
2222
><span class="font-semibold">Your net income</span></label
@@ -63,7 +63,6 @@
6363
autocomplete="off"
6464
name="individual-net-income"
6565
value=""
66-
inputmode="numeric"
6766
/>
6867
</div>
6968
<div id="input-text-field-«Rhmlj5»" class="space-y-2">
@@ -141,7 +140,6 @@
141140
autocomplete="off"
142141
name="individual-working-income"
143142
value=""
144-
inputmode="numeric"
145143
/>
146144
</div>
147145
<div id="input-text-field-«Rlmlj5»" class="space-y-2">
@@ -210,7 +208,6 @@
210208
autocomplete="off"
211209
name="individual-claimed-income"
212210
value=""
213-
inputmode="numeric"
214211
/>
215212
</div>
216213
<div id="input-text-field-«Rpmlj5»" class="space-y-2">
@@ -279,7 +276,6 @@
279276
autocomplete="off"
280277
name="individual-claimed-repayment"
281278
value=""
282-
inputmode="numeric"
283279
/>
284280
</div>
285281
</div>

frontend/e2e/__snapshots__/estimator/step-income.spec.ts/Navigating-to-fr-revenus-renders-the-french-income-page-1.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<div>
1515
<form novalidate="" data-discover="true" action="/fr/revenus" method="post">
1616
<div class="space-y-6">
17-
<h2>
17+
<p>
1818
Pour estimer vos prestations, nous aurons besoin des renseignements
1919
suivants de votre déclaration de revenus de 2024.
20-
</h2>
21-
<h3 class="font-lato mb-4 text-2xl font-bold">Votre information</h3>
20+
</p>
21+
<h2 class="font-lato mb-4 text-2xl font-bold">Votre information</h2>
2222
<div id="input-text-field-«Rdmlj5»" class="space-y-2">
2323
<label class="block" id="input-text-field-«Rdmlj5»-label"
2424
><span class="font-semibold">Votre revenu net</span></label
@@ -64,7 +64,6 @@
6464
autocomplete="off"
6565
name="individual-net-income"
6666
value=""
67-
inputmode="numeric"
6867
/><span class="ml-1">$</span>
6968
</div>
7069
<div id="input-text-field-«Rhmlj5»" class="space-y-2">
@@ -142,7 +141,6 @@
142141
autocomplete="off"
143142
name="individual-working-income"
144143
value=""
145-
inputmode="numeric"
146144
/><span class="ml-1">$</span>
147145
</div>
148146
<div id="input-text-field-«Rlmlj5»" class="space-y-2">
@@ -217,7 +215,6 @@
217215
autocomplete="off"
218216
name="individual-claimed-income"
219217
value=""
220-
inputmode="numeric"
221218
/><span class="ml-1">$</span>
222219
</div>
223220
<div id="input-text-field-«Rpmlj5»" class="space-y-2">
@@ -292,7 +289,6 @@
292289
autocomplete="off"
293290
name="individual-claimed-repayment"
294291
value=""
295-
inputmode="numeric"
296292
/><span class="ml-1">$</span>
297293
</div>
298294
</div>

0 commit comments

Comments
 (0)