@@ -332,28 +332,36 @@ export const body_class = 'bg-body-tertiary'
332332 <option value="3">Three</option>
333333 </select>
334334 </div>
335- <div class="mb-3 form-check">
336- <input type="checkbox" class="form-check-input" id="exampleCheck1">
337- <label class="form-check-label" for="exampleCheck1">Check me out</label>
335+ <div class="mb-3 form-field">
336+ <div class="check">
337+ <input type="checkbox" id="exampleCheck1">
338+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'>
339+ <path class="checked" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 8 3 3 5-5'/>
340+ <path class="indeterminate" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 8.5h6'/>
341+ </svg>
342+ </div>
343+ <label for="exampleCheck1">Check me out</label>
338344 </div>
339345 <fieldset class="mb-3">
340346 <legend>Radios buttons</legend>
341- <div class="form-check ">
342- <input type="radio" name="radios" class="form-check-input " id="exampleRadio1">
343- <label class="form-check-label" for="exampleRadio1">Default radio</label>
347+ <div class="form-field ">
348+ <input type="radio" name="radios" class="radio " id="exampleRadio1">
349+ <label for="exampleRadio1">Default radio</label>
344350 </div>
345- <div class="mb-3 form-check ">
346- <input type="radio" name="radios" class="form-check-input " id="exampleRadio2">
347- <label class="form-check-label" for="exampleRadio2">Another radio</label>
351+ <div class="mb-3 form-field ">
352+ <input type="radio" name="radios" class="radio " id="exampleRadio2">
353+ <label for="exampleRadio2">Another radio</label>
348354 </div>
349355 </fieldset>
350356 <div class="mb-3">
351357 <label class="form-label" for="customFile">Upload</label>
352358 <input type="file" class="form-control" id="customFile">
353359 </div>
354- <div class="mb-3 form-check form-switch">
355- <input class="form-check-input" type="checkbox" role="switch" id="switchCheckChecked" checked>
356- <label class="form-check-label" for="switchCheckChecked">Checked switch checkbox input</label>
360+ <div class="mb-3 form-field">
361+ <div class="switch">
362+ <input type="checkbox" role="switch" id="switchCheckChecked" checked>
363+ </div>
364+ <label for="switchCheckChecked">Checked switch checkbox input</label>
357365 </div>
358366 <div class="mb-3">
359367 <label for="customRange3" class="form-label">Example range</label>
@@ -383,32 +391,38 @@ export const body_class = 'bg-body-tertiary'
383391 <option>Disabled select</option>
384392 </select>
385393 </div>
386- <div class="mb-3">
387- <div class="form-check">
388- <input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
389- <label class="form-check-label" for="disabledFieldsetCheck">
390- Can't check this
391- </label>
394+ <div class="mb-3 form-field">
395+ <div class="check">
396+ <input type="checkbox" id="disabledFieldsetCheck" disabled>
397+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'>
398+ <path class="checked" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 8 3 3 5-5'/>
399+ <path class="indeterminate" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 8.5h6'/>
400+ </svg>
392401 </div>
402+ <label for="disabledFieldsetCheck">
403+ Can't check this
404+ </label>
393405 </div>
394406 <fieldset class="mb-3">
395407 <legend>Disabled radios buttons</legend>
396- <div class="form-check ">
397- <input type="radio" name="radios" class="form-check-input " id="disabledRadio1" disabled>
398- <label class="form-check-label" for="disabledRadio1">Disabled radio</label>
408+ <div class="form-field ">
409+ <input type="radio" name="radios" class="radio " id="disabledRadio1" disabled>
410+ <label for="disabledRadio1">Disabled radio</label>
399411 </div>
400- <div class="mb-3 form-check ">
401- <input type="radio" name="radios" class="form-check-input " id="disabledRadio2" disabled>
402- <label class="form-check-label" for="disabledRadio2">Another radio</label>
412+ <div class="mb-3 form-field ">
413+ <input type="radio" name="radios" class="radio " id="disabledRadio2" disabled>
414+ <label for="disabledRadio2">Another radio</label>
403415 </div>
404416 </fieldset>
405417 <div class="mb-3">
406418 <label class="form-label" for="disabledCustomFile">Upload</label>
407419 <input type="file" class="form-control" id="disabledCustomFile" disabled>
408420 </div>
409- <div class="mb-3 form-check form-switch">
410- <input class="form-check-input" type="checkbox" role="switch" id="disabledSwitchCheckChecked" checked disabled>
411- <label class="form-check-label" for="disabledSwitchCheckChecked">Disabled checked switch checkbox input</label>
421+ <div class="mb-3 form-field">
422+ <div class="switch">
423+ <input type="checkbox" role="switch" id="disabledSwitchCheckChecked" checked disabled>
424+ </div>
425+ <label for="disabledSwitchCheckChecked">Disabled checked switch checkbox input</label>
412426 </div>
413427 <div class="mb-3">
414428 <label for="disabledRange" class="form-label">Disabled range</label>
@@ -572,9 +586,15 @@ export const body_class = 'bg-body-tertiary'
572586 </div>
573587 </div>
574588 <div class="col-12">
575- <div class="form-check">
576- <input class="form-check-input is-invalid" type="checkbox" value="" id="invalidCheck3" required>
577- <label class="form-check-label" for="invalidCheck3">
589+ <div class="form-field">
590+ <div class="check">
591+ <input class="is-invalid" type="checkbox" value="" id="invalidCheck3" required>
592+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'>
593+ <path class="checked" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 8 3 3 5-5'/>
594+ <path class="indeterminate" fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 8.5h6'/>
595+ </svg>
596+ </div>
597+ <label for="invalidCheck3">
578598 Agree to terms and conditions
579599 </label>
580600 <div class="invalid-feedback">
0 commit comments