File tree 2 files changed +14
-4
lines changed
src/shared/components/SubmissionPage/Submit
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -316,14 +316,15 @@ Please follow the instructions on the Challenge Details page regarding
316
316
< input
317
317
type = "checkbox"
318
318
id = "agree"
319
+ aria-label = "I understand and agree"
319
320
onChange = { e => setAgreed ( e . target . checked ) }
320
321
/>
321
322
< label htmlFor = "agree" >
322
- < div styleName = "tc-checkbox-label" >
323
- I UNDERSTAND AND AGREE
324
- </ div >
325
323
< input type = "hidden" />
326
324
</ label >
325
+ < div styleName = "tc-checkbox-label" >
326
+ I UNDERSTAND AND AGREE
327
+ </ div >
327
328
</ div >
328
329
< PrimaryButton
329
330
type = "submit"
Original file line number Diff line number Diff line change 187
187
margin-bottom : 30px ;
188
188
189
189
input [type = checkbox ] {
190
- display : none ;
190
+ visibility : visible ;
191
+ position : absolute ;
192
+ opacity : 0 ;
193
+ cursor : pointer ;
194
+ height : 0 ;
195
+ width : 0 ;
191
196
}
192
197
193
198
label {
230
235
border-color : $tc-dark-blue ;
231
236
}
232
237
238
+ input [type = checkbox ]:focus ~ label {
239
+ outline : 2px auto $tc-dark-blue ;
240
+ }
241
+
233
242
input [type = checkbox ]:checked + label ::after {
234
243
opacity : 1 ;
235
244
border-color : $tc-white ;
You can’t perform that action at this time.
0 commit comments