mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 22:59:58 +08:00
Added focus and a11y attributes/functionality to custom checkboxes
Closes #1476
This commit is contained in:
@ -3,9 +3,13 @@ $name
|
||||
$value
|
||||
$checked
|
||||
$label
|
||||
$tabindex
|
||||
--}}
|
||||
<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="{{ $tabindex ?? '0' }}"
|
||||
role="checkbox"
|
||||
aria-checked="{{ $checked ? 'true' : 'false' }}"
|
||||
class="custom-checkbox text-primary">@icon('check')</span>
|
||||
<span class="label">{{$label}}</span>
|
||||
</label>
|
Reference in New Issue
Block a user