]> BookStack Code Mirror - bookstack/blobdiff - resources/views/components/toggle-switch.blade.php
Code cleanup, bug squashing
[bookstack] / resources / views / components / toggle-switch.blade.php
index 4d3d3e8576bbb0044f306b697b9de2a14ffb0314..a5eec30051b32a9bcd9e983c0fd98a40c4356ca9 100644 (file)
@@ -1,7 +1,7 @@
 <label toggle-switch="{{$name}}" custom-checkbox class="toggle-switch">
     <input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
     <input type="checkbox" @if($value) checked="checked" @endif>
-    <span role="checkbox"
+    <span tabindex="0" role="checkbox"
           aria-checked="{{ $value ? 'true' : 'false' }}"
           class="custom-checkbox text-primary">@icon('check')</span>
     <span class="label">{{ $label }}</span>