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:
@@ -2,14 +2,13 @@
|
|||||||
padding-right: $line-height / 2;
|
padding-right: $line-height / 2;
|
||||||
|
|
||||||
.already-verified {
|
.already-verified {
|
||||||
|
@include has-fa-icon(check, solid);
|
||||||
color: $check;
|
color: $check;
|
||||||
line-height: $line-height * 2;
|
line-height: $line-height * 2;
|
||||||
|
|
||||||
.icon-check {
|
&::before {
|
||||||
color: $text-medium;
|
color: $text-medium;
|
||||||
font-size: rem-calc(24);
|
font-size: 1.4em;
|
||||||
line-height: rem-calc(45);
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<div class="verify-account">
|
<div class="verify-account">
|
||||||
<% if account.level_three_verified? %>
|
<% if account.level_three_verified? %>
|
||||||
<p class="already-verified">
|
<p class="already-verified">
|
||||||
<span class="icon-check"></span>
|
|
||||||
<%= t("account.show.verified_account") %>
|
<%= t("account.show.verified_account") %>
|
||||||
</p>
|
</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|||||||
Reference in New Issue
Block a user