Skip to content

Commit 437968a

Browse files
committed
Adds autocomplete types and autofocus to inputs
1 parent a0f437f commit 437968a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/tailwindcss-stubs/resources/views/auth/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ __('E-Mail Address') }}:
1919
</label>
2020

21-
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" required autofocus>
21+
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
2222

2323
@if ($errors->has('email'))
2424
<p class="text-red-500 text-xs italic mt-4">
@@ -32,7 +32,7 @@
3232
{{ __('Password') }}:
3333
</label>
3434

35-
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red-500' : '' }}" name="password" required>
35+
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red-500' : '' }}" name="password" required autocomplete="current-password">
3636

3737
@if ($errors->has('password'))
3838
<p class="text-red-500 text-xs italic mt-4">

src/tailwindcss-stubs/resources/views/auth/passwords/email.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ __('E-Mail Address') }}:
2626
</label>
2727

28-
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red' : '' }}" name="email" value="{{ old('email') }}" required>
28+
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red' : '' }}" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
2929

3030
@if ($errors->has('email'))
3131
<p class="text-red-500 text-xs italic mt-4">

src/tailwindcss-stubs/resources/views/auth/passwords/reset.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ __('E-Mail Address') }}:
2121
</label>
2222

23-
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red' : '' }}" name="email" value="{{ old('email') }}" required autofocus>
23+
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red' : '' }}" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
2424

2525
@if ($errors->has('email'))
2626
<p class="text-red-500 text-xs italic mt-4">
@@ -34,7 +34,7 @@
3434
{{ __('Password') }}:
3535
</label>
3636

37-
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red' : '' }}" name="password" required>
37+
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red' : '' }}" name="password" required autocomplete="new-password">
3838

3939
@if ($errors->has('password'))
4040
<p class="text-red-500 text-xs italic mt-4">
@@ -48,7 +48,7 @@
4848
{{ __('Confirm Password') }}:
4949
</label>
5050

51-
<input id="password-confirm" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" name="password_confirmation" required>
51+
<input id="password-confirm" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" name="password_confirmation" required autocomplete="new-password">
5252
</div>
5353

5454
<div class="flex flex-wrap">

src/tailwindcss-stubs/resources/views/auth/register.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ __('Name') }}:
1919
</label>
2020

21-
<input id="name" type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('name') ? ' border-red-500' : '' }}" name="name" value="{{ old('name') }}" required autofocus>
21+
<input id="name" type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('name') ? ' border-red-500' : '' }}" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
2222

2323
@if ($errors->has('name'))
2424
<p class="text-red-500 text-xs italic mt-4">
@@ -32,7 +32,7 @@
3232
{{ __('E-Mail Address') }}:
3333
</label>
3434

35-
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" required>
35+
<input id="email" type="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" required autocomplete="email">
3636

3737
@if ($errors->has('email'))
3838
<p class="text-red-500 text-xs italic mt-4">
@@ -46,7 +46,7 @@
4646
{{ __('Password') }}:
4747
</label>
4848

49-
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red-500' : '' }}" name="password" required>
49+
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline{{ $errors->has('password') ? ' border-red-500' : '' }}" name="password" required autocomplete="new-password">
5050

5151
@if ($errors->has('password'))
5252
<p class="text-red-500 text-xs italic mt-4">
@@ -60,7 +60,7 @@
6060
{{ __('Confirm Password') }}:
6161
</label>
6262

63-
<input id="password-confirm" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" name="password_confirmation" required>
63+
<input id="password-confirm" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" name="password_confirmation" required autocomplete="new-password">
6464
</div>
6565

6666
<div class="flex flex-wrap">

0 commit comments

Comments
 (0)