]> BookStack Code Mirror - bookstack/commitdiff
Added back in some tabindex that shouldn't have been removed
authorDan Brown <redacted>
Thu, 17 Oct 2019 13:21:13 +0000 (14:21 +0100)
committerDan Brown <redacted>
Thu, 17 Oct 2019 13:21:13 +0000 (14:21 +0100)
resources/views/components/custom-checkbox.blade.php
resources/views/components/toggle-switch.blade.php

index fa3da02e503d6b2d34ec76752260a49b498a2665..2bf4e223201a5e04b8accd48b575f7b887f378c5 100644 (file)
@@ -6,7 +6,7 @@ $label
 --}}
 <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 role="checkbox"
+    <span tabindex="0" role="checkbox"
           aria-checked="{{ $checked ? 'true' : 'false' }}"
           class="custom-checkbox text-primary">@icon('check')</span>
     <span class="label">{{$label}}</span>
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>