Skip to content

Commit 8a8b02b

Browse files
committed
Merge pull request #3144 from r0hit-gupta/msft149
MSFT-149
1 parent e823b90 commit 8a8b02b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/shared/components/SubmissionPage/Submit/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,15 @@ Please follow the instructions on the Challenge Details page regarding
316316
<input
317317
type="checkbox"
318318
id="agree"
319+
aria-label="I understand and agree"
319320
onChange={e => setAgreed(e.target.checked)}
320321
/>
321322
<label htmlFor="agree">
322-
<div styleName="tc-checkbox-label">
323-
I UNDERSTAND AND AGREE
324-
</div>
325323
<input type="hidden" />
326324
</label>
325+
<div styleName="tc-checkbox-label">
326+
I UNDERSTAND AND AGREE
327+
</div>
327328
</div>
328329
<PrimaryButton
329330
type="submit"

src/shared/components/SubmissionPage/Submit/styles.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,12 @@
187187
margin-bottom: 30px;
188188

189189
input[type=checkbox] {
190-
display: none;
190+
visibility: visible;
191+
position: absolute;
192+
opacity: 0;
193+
cursor: pointer;
194+
height: 0;
195+
width: 0;
191196
}
192197

193198
label {
@@ -230,6 +235,10 @@
230235
border-color: $tc-dark-blue;
231236
}
232237

238+
input[type=checkbox]:focus ~ label {
239+
outline: 2px auto $tc-dark-blue;
240+
}
241+
233242
input[type=checkbox]:checked + label::after {
234243
opacity: 1;
235244
border-color: $tc-white;

0 commit comments

Comments
 (0)