Skip to content

Commit 39d4736

Browse files
committed
Blend-in style
Use same border color as the field next to it.
1 parent 1fa98d3 commit 39d4736

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/adminui/templates/auth/login.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
--bs-link-hover-color-rgb: 227,130,14;
6060
text-decoration: none;
6161
}
62+
63+
.password-toggle, .password-toggle:hover, .password-toggle:focus { border-color: var(--bs-border-color); }
6264
</style>
6365
{% endblock %}
6466

src/adminui/templates/macros.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
<div class="mb-3">
33
<label class="form-label" for="{{ name }}">{{ label }}</label>
44
<div class="input-group">
5-
<input type="password"
6-
class="form-control password-input {% if error %}is-invalid{% endif %}"
7-
name="{{ name }}"
5+
<input type="password"
6+
class="form-control password-input {% if error %}is-invalid{% endif %}"
7+
name="{{ name }}"
88
id="{{ name }}"
99
placeholder="{{ placeholder }}"
1010
{% if error %}aria-describedby="{{ name }}Feedback"{% endif %}>
11-
12-
<button class="btn btn-outline-secondary password-toggle" type="button">
11+
12+
<button class="btn password-toggle" type="button">
1313
{% include "icons/eye.svg" %}
1414
{% include "icons/eye-slash.svg" %}
1515
</button>
16-
16+
1717
{% if error %}<div id="{{ name }}Feedback" class="invalid-feedback">{{ error }}</div>{% endif %}
1818
</div>
1919
</div>

0 commit comments

Comments
 (0)