]> BookStack Code Mirror - bookstack/blobdiff - resources/views/components/toggle-switch.blade.php
Show bookshelves that a book belongs to on a book view
[bookstack] / resources / views / components / toggle-switch.blade.php
index c5a30a60f9dae1842a75fcbc9ee3418b52584d18..f61c076707eb5f1277a8a7d725654e30c4a03816 100644 (file)
@@ -1,4 +1,9 @@
-<div toggle-switch="{{$name}}" class="toggle-switch @if($value) active @endif">
+<label toggle-switch="{{$name}}" custom-checkbox class="toggle-switch">
     <input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
-    <div class="switch-handle"></div>
-</div>
\ No newline at end of file
+    <input type="checkbox" @if($value) checked="checked" @endif>
+    <span tabindex="{{ $tabindex ?? '0' }}"
+          role="checkbox"
+          aria-checked="{{ $value ? 'true' : 'false' }}"
+          class="custom-checkbox text-primary">@icon('check')</span>
+    <span class="label">{{ $label }}</span>
+</label>
\ No newline at end of file