]> BookStack Code Mirror - bookstack/blobdiff - resources/views/components/custom-checkbox.blade.php
Fix build:js:watch not building at first launch in Docker
[bookstack] / resources / views / components / custom-checkbox.blade.php
index 73b7496f8d9e2b62130f4a9c97fbfc96c25edeb3..2bf4e223201a5e04b8accd48b575f7b887f378c5 100644 (file)
@@ -4,8 +4,10 @@ $value
 $checked
 $label
 --}}
-<label class="toggle-switch @if($errors->has($name)) text-neg @endif">
+<label custom-checkbox class="toggle-switch @if($errors->has($name)) text-neg @endif">
     <input type="checkbox" name="{{$name}}" value="{{ $value }}" @if($checked) checked="checked" @endif>
-    <span class="custom-checkbox text-primary">@icon('check')</span>
+    <span tabindex="0" role="checkbox"
+          aria-checked="{{ $checked ? 'true' : 'false' }}"
+          class="custom-checkbox text-primary">@icon('check')</span>
     <span class="label">{{$label}}</span>
 </label>
\ No newline at end of file