Render icons using CSS in user permissions
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:
@@ -15,4 +15,12 @@ class Account::PermissionsListComponent < ApplicationComponent
|
||||
t("verification.user_permission_votes") => user.level_three_verified?
|
||||
}
|
||||
end
|
||||
|
||||
def allowed_class(allowed)
|
||||
if allowed
|
||||
"permission-allowed"
|
||||
else
|
||||
"permission-denied"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user