mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-27 04:32:14 +00:00
Removed tabindexes where found to be not required
This commit is contained in:
parent
5a887e31da
commit
e48d7d59cc
@ -1,12 +1,12 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="username">{{ trans('auth.username') }}</label>
|
<label for="username">{{ trans('auth.username') }}</label>
|
||||||
@include('form.text', ['name' => 'username', 'tabindex' => 1])
|
@include('form.text', ['name' => 'username', 'autofocus' => true])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if(session('request-email', false) === true)
|
@if(session('request-email', false) === true)
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email">{{ trans('auth.email') }}</label>
|
<label for="email">{{ trans('auth.email') }}</label>
|
||||||
@include('form.text', ['name' => 'email', 'tabindex' => 1])
|
@include('form.text', ['name' => 'email'])
|
||||||
<span class="text-neg">
|
<span class="text-neg">
|
||||||
{{ trans('auth.ldap_email_hint') }}
|
{{ trans('auth.ldap_email_hint') }}
|
||||||
</span>
|
</span>
|
||||||
@ -15,5 +15,5 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="password">{{ trans('auth.password') }}</label>
|
<label for="password">{{ trans('auth.password') }}</label>
|
||||||
@include('form.password', ['name' => 'password', 'tabindex' => 1])
|
@include('form.password', ['name' => 'password'])
|
||||||
</div>
|
</div>
|
@ -1,11 +1,11 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email">{{ trans('auth.email') }}</label>
|
<label for="email">{{ trans('auth.email') }}</label>
|
||||||
@include('form.text', ['name' => 'email', 'tabindex' => 1, 'focus' => 1])
|
@include('form.text', ['name' => 'email', 'autofocus' => true])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="password">{{ trans('auth.password') }}</label>
|
<label for="password">{{ trans('auth.password') }}</label>
|
||||||
@include('form.password', ['name' => 'password', 'tabindex' => 1])
|
@include('form.password', ['name' => 'password'])
|
||||||
<span class="block small mt-s">
|
<span class="block small mt-s">
|
||||||
<a href="{{ url('/password/email') }}">{{ trans('auth.forgot_password') }}</a>
|
<a href="{{ url('/password/email') }}">{{ trans('auth.forgot_password') }}</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -22,13 +22,12 @@
|
|||||||
'name' => 'remember',
|
'name' => 'remember',
|
||||||
'checked' => false,
|
'checked' => false,
|
||||||
'value' => 'on',
|
'value' => 'on',
|
||||||
'tabindex' => 1,
|
|
||||||
'label' => trans('auth.remember_me'),
|
'label' => trans('auth.remember_me'),
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<button class="button" tabindex="1">{{ Str::title(trans('auth.log_in')) }}</button>
|
<button class="button">{{ Str::title(trans('auth.log_in')) }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -3,12 +3,10 @@ $name
|
|||||||
$value
|
$value
|
||||||
$checked
|
$checked
|
||||||
$label
|
$label
|
||||||
$tabindex
|
|
||||||
--}}
|
--}}
|
||||||
<label custom-checkbox 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>
|
<input type="checkbox" name="{{$name}}" value="{{ $value }}" @if($checked) checked="checked" @endif>
|
||||||
<span tabindex="{{ $tabindex ?? '0' }}"
|
<span role="checkbox"
|
||||||
role="checkbox"
|
|
||||||
aria-checked="{{ $checked ? 'true' : 'false' }}"
|
aria-checked="{{ $checked ? 'true' : 'false' }}"
|
||||||
class="custom-checkbox text-primary">@icon('check')</span>
|
class="custom-checkbox text-primary">@icon('check')</span>
|
||||||
<span class="label">{{$label}}</span>
|
<span class="label">{{$label}}</span>
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<label toggle-switch="{{$name}}" custom-checkbox class="toggle-switch">
|
<label toggle-switch="{{$name}}" custom-checkbox class="toggle-switch">
|
||||||
<input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
|
<input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
|
||||||
<input type="checkbox" @if($value) checked="checked" @endif>
|
<input type="checkbox" @if($value) checked="checked" @endif>
|
||||||
<span tabindex="{{ $tabindex ?? '0' }}"
|
<span role="checkbox"
|
||||||
role="checkbox"
|
|
||||||
aria-checked="{{ $value ? 'true' : 'false' }}"
|
aria-checked="{{ $value ? 'true' : 'false' }}"
|
||||||
class="custom-checkbox text-primary">@icon('check')</span>
|
class="custom-checkbox text-primary">@icon('check')</span>
|
||||||
<span class="label">{{ $label }}</span>
|
<span class="label">{{ $label }}</span>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<input type="password" id="{{ $name }}" name="{{ $name }}"
|
<input type="password" id="{{ $name }}" name="{{ $name }}"
|
||||||
@if($errors->has($name)) class="text-neg" @endif
|
@if($errors->has($name)) class="text-neg" @endif
|
||||||
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
|
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
|
||||||
@if(isset($tabindex)) tabindex="{{$tabindex}}" @endif
|
|
||||||
@if(old($name)) value="{{ old($name)}}" @endif>
|
@if(old($name)) value="{{ old($name)}}" @endif>
|
||||||
@if($errors->has($name))
|
@if($errors->has($name))
|
||||||
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<input type="text" id="{{ $name }}" name="{{ $name }}"
|
<input type="text" id="{{ $name }}" name="{{ $name }}"
|
||||||
@if(isset($focus)) autofocus @endif
|
|
||||||
@if($errors->has($name)) class="text-neg" @endif
|
@if($errors->has($name)) class="text-neg" @endif
|
||||||
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
|
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
|
||||||
@if(isset($disabled) && $disabled) disabled="disabled" @endif
|
@if($autofocus ?? false) autofocus @endif
|
||||||
@if(isset($tabindex)) tabindex="{{$tabindex}}" @endif
|
@if($disabled ?? false) disabled="disabled" @endif
|
||||||
@if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>
|
@if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>
|
||||||
@if($errors->has($name))
|
@if($errors->has($name))
|
||||||
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user