Skip to content

Commit ce3f60e

Browse files
Changed styling for exemptions quiz
Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>
1 parent 7491999 commit ce3f60e

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ <h4 id="quiz-subheading">
7979
</div>
8080
</fieldset>
8181

82-
<button class="usa-button" type="button" id="start" onclick="determineExemptions(event)">Submit</button>
82+
<button class="usa-button margin-top-2" type="button" id="start"
83+
onclick="determineExemptions(event)">Submit</button>
8384
</div>
8485
</div>
8586
<div class="results" style="display: none;">
@@ -94,7 +95,7 @@ <h4 id="quiz-subheading">
9495
<div class="exemptions-header">
9596
<div class="step-header">
9697
<div class="step-number">1b</div>
97-
<h3>Is my project exempted from the SHARE IT Act?</h3>
98+
<h2>Is my project exempted from the SHARE IT Act?</h2>
9899
</div>
99100
</div>
100101
<div id="exemptions-quiz-container" class="exemptions-quiz-container">
@@ -163,13 +164,13 @@ <h4 id="quiz-subheading">
163164
<label class="usa-checkbox__label" for="share-it-act-check-none">None of the above </label>
164165
</div>
165166
</fieldset>
166-
<button class="usa-button" type="button" id="share-it-act"
167+
<button class="usa-button margin-top-2" type="button" id="share-it-act"
167168
onclick="determineExemptions(event)">Submit</button>
168169
</div>
169170
</div>
170171
<div class="results" style="display: none;">
171172
<div class="results-container">
172-
<p class="exemption-result">Your project </p>
173+
<div class="exemption-result"></div>
173174
</div>
174175
<button class="usa-button" id="share-it-act" onclick="handleClick(event)">Next</button>
175176
</div>
@@ -179,7 +180,7 @@ <h4 id="quiz-subheading">
179180
<div class="exemptions-header">
180181
<div class="step-header">
181182
<div class="step-number">1c</div>
182-
<h3>Is my project exempted from M-16-21?</h3>
183+
<h2>Is my project exempted from M-16-21?</h2>
183184
</div>
184185
</div>
185186
<div class="exemptions-quiz-container">
@@ -232,15 +233,16 @@ <h4 id="quiz-subheading">
232233
<label class="usa-checkbox__label" for="m-16-21-check-none">None of the above </label>
233234
</div>
234235
</fieldset>
235-
<button class="usa-button" type="button" id="m-16-21"
236+
<button class="usa-button margin-top-2" type="button" id="m-16-21"
236237
onclick="determineExemptions(event)">Submit</button>
237238
</div>
238239
</div>
239240
<div class="results" style="display: none;">
240241
<div class="results-container">
241-
<p class="exemption-result">Your project </p>
242+
<div class="exemption-result"></div>
242243
</div>
243-
<button class="usa-button" id="m-16-21" onclick="handleClick(event)">Try Again</button>
244+
<button class="usa-button usa-button--unstyled" id="m-16-21" onclick="handleClick(event)">Try
245+
Again</button>
244246
</div>
245247
</div>
246248

js/exemptionQuizHandler.js

Lines changed: 5 additions & 5 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>Your project is qualified for sharing and reuse according to the SHARE IT Act and M-16-21.</h4>
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>
3232
<p>We've marked this in the form below for you as: <strong>${checkedValues[0]}</strong></p>`
3333
}
3434
}
@@ -37,20 +37,20 @@ 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>Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
40+
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
4141
<p>Please complete <strong>Part 1c</strong> to determine additional project exemptions.</p>`;
4242
}
4343
else {
44-
text = `<h4>Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
45-
<h5>If your project is NOT exempted from both M-16-21 AND the SHARE IT Act, please mark the following on the form: </h5>
44+
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <div class="not-exempt"><strong>NOT EXEMPTED</strong></div></h4>
45+
<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>`;
4848
}
4949
}
5050
// Project is exempted
5151
else {
5252
const selections = checkedValues.join(", ");
53-
text = `<h4>Your project is: <strong>EXEMPTED</strong></h4>
53+
text = `<h4 class="usa-heading margin-top-neg-05">Your project is: <strong>EXEMPTED</strong></h4>
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)