We were displaying an icon showing that certain actions can't be performed. However, people who can't see the icons were hearing that they _can_ perform certain actions while the opposite is true. We've considered other options to solve this problem. One was to split the list in two: actions that can be performed and actions that can't be performed. It was tricky because in some cases we're listing that actions that can be performed now and in other cases we're displaying the actions that people will be able to perform once they verify their account. Another option was to include the word "Cannot" as a prefix instead of "Additional verification needed". We haven't done so because, while in English we say "cannot do this thing", in other languages they say "this thing cannot do". So we've gone with a solution where people hearing what's on the screen know what's going on and we don't have to make big changes in the code.
12 lines
297 B
Plaintext
12 lines
297 B
Plaintext
<ul class="permissions-list">
|
|
<% permissions.each do |text, allowed| %>
|
|
<li class="<%= allowed_class(allowed) %>">
|
|
<% unless allowed %>
|
|
<span class="show-for-sr"><%= t("verification.verification_needed") %></span>
|
|
<% end %>
|
|
|
|
<%= text %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|