Render account verified icon using CSS

As mentioned in commit 925f04e3f, icon classes make screen readers
announce strange symbols and aren't properly displayed for people who
have changed their preferred font family.
This commit is contained in:
Javi Martín
2022-08-11 20:26:36 +02:00
parent d59d02ba83
commit 3938f4ff95
2 changed files with 3 additions and 5 deletions

View File

@@ -2,14 +2,13 @@
padding-right: $line-height / 2;
.already-verified {
@include has-fa-icon(check, solid);
color: $check;
line-height: $line-height * 2;
.icon-check {
&::before {
color: $text-medium;
font-size: rem-calc(24);
line-height: rem-calc(45);
vertical-align: middle;
font-size: 1.4em;
}
}
}

View File

@@ -1,7 +1,6 @@
<div class="verify-account">
<% if account.level_three_verified? %>
<p class="already-verified">
<span class="icon-check"></span>
<%= t("account.show.verified_account") %>
</p>
<% else %>