Use semantic button instead of a href

This commit is contained in:
ldestailleur 2025-04-02 19:33:55 +02:00
parent 392d33ce02
commit 4cd556730f
3 changed files with 9 additions and 3 deletions

View file

@ -306,7 +306,7 @@ if ($disablenofollow) {
<!--<span class="span-icon-password">-->
<span class="fa fa-key"></span>
<input type="password" id="password" maxlength="128" placeholder="<?php echo $langs->trans("Password"); ?>" name="password" class="flat input-icon-password minwidth150" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" autocomplete="<?php echo !getDolGlobalString('MAIN_LOGIN_ENABLE_PASSWORD_AUTOCOMPLETE') ? 'off' : 'on'; ?>" />
<a href id="togglepassword" tabindex="3"><span class="fa fa-eye"></span></a>
<button id="togglepassword" tabindex="3"><span class="fa fa-eye"></span></button>
</div></div>
<script nonce="<?php echo getNonce(); ?>">
$(document).ready(function () {

View file

@ -3421,8 +3421,11 @@ if (getDolGlobalString('MAIN_LOGIN_BACKGROUND')) {
}
.login_table #tdpasswordlogin #togglepassword {
position: absolute;
top: 10px;
top: 1em;
right: 5px;
background: none;
border: none;
/* opacity: 0.5; */
}
.login_table #tdpasswordlogin #togglepassword .fa {
padding: 0 3px;

View file

@ -3487,8 +3487,11 @@ form#login {
}
.login_table #tdpasswordlogin #togglepassword {
position: absolute;
top: 10px;
top: 1em;
right: 5px;
background: none;
border: none;
/* opacity: 0.5; */
}
.login_table #tdpasswordlogin #togglepassword .fa {
padding: 0 3px;