Skip to content

Commit

Permalink
Fix toggle password visibility icon
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed May 7, 2024
1 parent 5c7ce93 commit 79976df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/backend/user/changepassword.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<div class="relative">
<input name="new-password" :type="show ? 'password' : 'text'" placeholder="{{__('Enter a new password')}}" class="form-input mt-1" required>
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm leading-5">
<x-icon-eye x-on:click="show=!show" ::class="{'!hidden': !show, 'block':show}" />
<x-icon-eye-slash x-on:click="show=!show" ::class="{'block': !show, '!hidden':show}" />
<x-icon-eye-slash x-on:click="show=!show" ::class="{'!hidden': !show, 'block': show}" />
<x-icon-eye x-on:click="show=!show" ::class="{'block': !show, '!hidden': show}" />
</div>
</div>

Expand All @@ -45,8 +45,8 @@ class="form-label">{{__('Confirmation')}}</label>
name="new-password_confirmation" aria-label="Retype the new password"
placeholder="Retype the new password" class="form-input mt-1" required>
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm leading-5">
<x-icon-eye x-on:click="show=!show" ::class="{'!hidden': !show, 'block':show}" />
<x-icon-eye-slash x-on:click="show=!show" ::class="{'block': !show, '!hidden':show}" />
<x-icon-eye-slash x-on:click="show=!show" ::class="{'!hidden': !show, 'block': show}" />
<x-icon-eye x-on:click="show=!show" ::class="{'block': !show, '!hidden': show}" />
</div>
</div>
</div>
Expand Down

0 comments on commit 79976df

Please sign in to comment.