Skip to content

Commit 94d54f7

Browse files
kevin-vuong99Kevin Vuong
andauthored
allow tab on Show Password (#11812)
Co-authored-by: Kevin Vuong <kevin.vuong@hrsdc-rhdcc.gc>
1 parent 28eb058 commit 94d54f7

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

dojo/static/dojo/css/dojo.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,14 @@ small {
18371837
min-width:200px;
18381838
}
18391839

1840+
#toggleBox {
1841+
background-color: transparent!important;
1842+
border: none!important;
1843+
font-weight: bold!important;
1844+
position: absolute!important;
1845+
left: 0!important;
1846+
}
1847+
18401848
.EasyMDEContainer .table {
18411849
width: unset!important;
18421850
}

dojo/static/dojo/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ function togglePassVisibility() {
247247
if (passwdInput.type === "password") {
248248
passwdInput.type = "text";
249249
toggleBox.innerHTML = "<i class='fa-solid fa-eye-slash'></i>\
250-
<span><b>Hide Password</b></span>";
250+
<span>Hide Password</span>";
251251
} else {
252252
passwdInput.type = "password";
253253
toggleBox.innerHTML = "<i class='fa-solid fa-eye'></i>\
254-
<span><b>Show Password</b></span>";
254+
<span>Show Password</span>";
255255
}
256256
}
257257

dojo/templates/dojo/login.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ <h3>{% trans "Login" %}</h3>
2020
<div class="form-group">
2121

2222
{% if SHOW_LOGIN_FORM or 'force_login_form' in request.GET %}
23-
<div class="col-sm-offset-1 col-sm-2" id="toggleBox" onclick="togglePassVisibility()">
24-
<i class="fa-solid fa-eye"></i>
25-
<span><b>{% trans "Show Password" %}</b></span>
23+
<div class="col-sm-offset-1 col-sm-2">
24+
<button class="btn" id="toggleBox" onclick="togglePassVisibility()" type="button">
25+
<i class="fa-solid fa-eye"></i>
26+
{% trans "Show Password" %}
27+
</button>
2628
</div>
2729
{% endif %}
2830

0 commit comments

Comments
 (0)