Removed tabindexes where found to be not required

This commit is contained in:
Dan Brown 2019-10-17 14:19:35 +01:00
parent 5a887e31da
commit e48d7d59cc
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
7 changed files with 10 additions and 16 deletions

View File

@ -1,12 +1,12 @@
<div class="form-group">
<label for="username">{{ trans('auth.username') }}</label>
@include('form.text', ['name' => 'username', 'tabindex' => 1])
@include('form.text', ['name' => 'username', 'autofocus' => true])
</div>
@if(session('request-email', false) === true)
<div class="form-group">
<label for="email">{{ trans('auth.email') }}</label>
@include('form.text', ['name' => 'email', 'tabindex' => 1])
@include('form.text', ['name' => 'email'])
<span class="text-neg">
{{ trans('auth.ldap_email_hint') }}
</span>
@ -15,5 +15,5 @@
<div class="form-group">
<label for="password">{{ trans('auth.password') }}</label>
@include('form.password', ['name' => 'password', 'tabindex' => 1])
@include('form.password', ['name' => 'password'])
</div>

View File

@ -1,11 +1,11 @@
<div class="form-group">
<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 class="form-group">
<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">
<a href="{{ url('/password/email') }}">{{ trans('auth.forgot_password') }}</a>
</span>

View File

@ -22,13 +22,12 @@
'name' => 'remember',
'checked' => false,
'value' => 'on',
'tabindex' => 1,
'label' => trans('auth.remember_me'),
])
</div>
<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>

View File

@ -3,12 +3,10 @@ $name
$value
$checked
$label
$tabindex
--}}
<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 tabindex="{{ $tabindex ?? '0' }}"
role="checkbox"
<span role="checkbox"
aria-checked="{{ $checked ? 'true' : 'false' }}"
class="custom-checkbox text-primary">@icon('check')</span>
<span class="label">{{$label}}</span>

View File

@ -1,8 +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 tabindex="{{ $tabindex ?? '0' }}"
role="checkbox"
<span role="checkbox"
aria-checked="{{ $value ? 'true' : 'false' }}"
class="custom-checkbox text-primary">@icon('check')</span>
<span class="label">{{ $label }}</span>

View File

@ -1,7 +1,6 @@
<input type="password" id="{{ $name }}" name="{{ $name }}"
@if($errors->has($name)) class="text-neg" @endif
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
@if(isset($tabindex)) tabindex="{{$tabindex}}" @endif
@if(old($name)) value="{{ old($name)}}" @endif>
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>

View File

@ -1,9 +1,8 @@
<input type="text" id="{{ $name }}" name="{{ $name }}"
@if(isset($focus)) autofocus @endif
@if($errors->has($name)) class="text-neg" @endif
@if(isset($placeholder)) placeholder="{{$placeholder}}" @endif
@if(isset($disabled) && $disabled) disabled="disabled" @endif
@if(isset($tabindex)) tabindex="{{$tabindex}}" @endif
@if($autofocus ?? false) autofocus @endif
@if($disabled ?? false) disabled="disabled" @endif
@if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>