Use an SVG icon for the show password button

As mentioned in commit 925f04e3f, SVG icons offer many advantages over
icon fonts.
This commit is contained in:
Javi Martín
2025-02-26 09:03:01 +01:00
parent 573f0e62cc
commit 5f9c6fd554
2 changed files with 1 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
} }
.show-password { .show-password {
@include has-fa-icon(eye, regular);
cursor: pointer; cursor: pointer;
} }
} }

View File

@@ -11,7 +11,6 @@
<%= f.password_field :password, class: "input-group-field", label: false, value: nil %> <%= f.password_field :password, class: "input-group-field", label: false, value: nil %>
<span class="input-group-label"> <span class="input-group-label">
<button type="button" class="show-password" aria-pressed="false"> <button type="button" class="show-password" aria-pressed="false">
<span class="icon-eye"></span>
<span class="show-for-sr"><%= t("management.account.edit.password.show") %></span> <span class="show-for-sr"><%= t("management.account.edit.password.show") %></span>
</button> </button>
</span> </span>