Note we're absolutely positioning the link instead of the icon; that way keyboard users will be able to focus on the icon. Until now, users would focus on an empty link. For the same reason, we couldn't use `click_link` with Capybara, since it would fail to click an empty link. Now we can. Co-authored-by: Javi Martín <javim@elretirao.net>
15 lines
451 B
Plaintext
15 lines
451 B
Plaintext
<li id="<%= list_item_id %>">
|
|
<%= investment_title %>
|
|
<span><%= investment.formatted_price %></span>
|
|
|
|
<% if budget.balloting? %>
|
|
<%= link_to delete_path,
|
|
title: t("budgets.ballots.show.remove"),
|
|
class: "remove-budget-investment",
|
|
method: :delete,
|
|
remote: true do %>
|
|
<span class="show-for-sr"><%= t("budgets.ballots.show.remove") %></span>
|
|
<% end %>
|
|
<% end %>
|
|
</li>
|