Skip to content

Commit 69eb0d2

Browse files
Merge pull request #97 from DSACMS/DSACMS/nat/accessibility-fixes
Form: Accessibility & SEO Fixes
2 parents ae86219 + 6b4e72f commit 69eb0d2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ <h2>Identify your project's classification</h2>
5353
</div>
5454
</div>
5555
<div id="exemptions-quiz-container" class="exemptions-quiz-container">
56-
<h4 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
56+
<h3 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
5757
My project is considered:
58-
</h4>
58+
</h3>
5959
<div id="exemptions-quiz">
6060
<fieldset class="usa-fieldset">
6161
<div class="usa-radio">
@@ -103,10 +103,10 @@ <h2>Is my project exempted from the SHARE IT Act?</h2>
103103
</div>
104104
</div>
105105
<div id="exemptions-quiz-container" class="exemptions-quiz-container">
106-
<h4 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
106+
<h3 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
107107
Answer the series of questions below to determine if your project falls under the exemption categories
108108
according to the SHARE IT Act.
109-
</h4>
109+
</h3>
110110
<div id="exemptions-quiz">
111111
<fieldset class="usa-fieldset">
112112
<div class="usa-checkbox">
@@ -189,10 +189,10 @@ <h2>Is my project exempted from M-16-21?</h2>
189189
</div>
190190
</div>
191191
<div class="exemptions-quiz-container">
192-
<h4 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
192+
<h3 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading">
193193
Answer the series of questions below to determine if your project falls under the exemption categories
194194
according to M-16-21 Act.
195-
</h4>
195+
</h3>
196196
<div id="exemptions-quiz">
197197
<fieldset class="usa-fieldset">
198198
<div class="usa-checkbox">
@@ -266,9 +266,9 @@ <h4 class="usa-alert__heading"></h4>
266266
<div class="step-number">2</div>
267267
<h2>Auto Generate Fields</h2>
268268
</div>
269-
<h4 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading"> Enter your repository's
269+
<h3 class="usa-heading margin-top-neg-05 margin-bottom-1" id="quiz-subheading"> Enter your repository's
270270
GitHub URL in order to automatically pre-fill some of the
271-
fields in this form </h4>
271+
fields in this form </h3>
272272
<p><i>This currently only works on <b>public</b> repositories</i></p>
273273
</div>
274274
<form id="github-url-form">

js/exemptionQuizHandler.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function determineResults(checkedValues, legislationName) {
2828
// Project is not exempt - simple quiz
2929
if (legislationName == "start") {
3030
if (checkedValues[0] !== "exempt") {
31-
text = `<h4 class="usa-heading margin-top-neg-05">Your project is qualified for sharing and reuse according to the SHARE IT Act and M-16-21.</h4>
31+
text = `<h3 class="usa-heading margin-top-neg-05">Your project is qualified for sharing and reuse according to the SHARE IT Act and M-16-21.</h3>
3232
<p>We've marked this in the form below for you as: <strong>${checkedValues[0]}</strong></p>`
3333
}
3434
}
@@ -37,11 +37,11 @@ function determineResults(checkedValues, legislationName) {
3737
else if ((checkedValues.length === 1 && checkedValues[0].includes("none")) || checkedValues.length === 0) {
3838

3939
if (legislationName === "share-it-act") {
40-
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
40+
text = `<h3 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h3>
4141
<p>Please complete <strong>Part 1c</strong> to determine additional project exemptions.</p>`;
4242
}
4343
else {
44-
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
44+
text = `<h3 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h3>
4545
<p>If your project is NOT exempted from both M-16-21 AND the SHARE IT Act, please mark the following on the form: </p>
4646
<p>If your repository is public, mark <code>usageType</code> as <strong>openSource</strong>.</p>
4747
<p>If your repository is private, mark <code>usageType</code> as <strong>governmentWideReuse</strong>.</p>`;
@@ -50,7 +50,7 @@ function determineResults(checkedValues, legislationName) {
5050
// Project is exempted
5151
else {
5252
const selections = checkedValues.join(", ");
53-
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <strong>EXEMPTED</strong></h4>
53+
text = `<h3 class="usa-heading margin-top-neg-05">Your project is: <strong>EXEMPTED</strong></h3>
5454
<p>We've marked this in the form below for you as: <strong>${selections}</strong></p>
5555
<p>Be sure to include a 1–2 sentence justification in the <code>exemptionText</code> field to support the exemption determination.</p>`;
5656
}

0 commit comments

Comments
 (0)