Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Replace raw title= attribute with DS::Tooltip on eye-off icon

DataEnginr7695ae9ba779
diff --git a/app/views/accounts/_account.html.erb b/app/views/accounts/_account.html.erb
index ef8af8e405..4a1c73ca89 100644
--- a/app/views/accounts/_account.html.erb
+++ b/app/views/accounts/_account.html.erb
@@ -22,7 +22,9 @@
<%= link_to account.name, account, class: [(account.active? ? "text-primary" : "text-subdued"), "text-sm font-medium hover:underline"], data: { turbo_frame: "_top" } %>
<% if account.exclude_from_reports? %>
- <%= icon("eye-off", class: "w-3.5 h-3.5 text-secondary", title: t("accounts.account.excluded_from_reports_indicator")) %>
+ <%= render DS::Tooltip.new(text: t("accounts.account.excluded_from_reports_indicator"), as: :span) do %>
+ <%= icon("eye-off", class: "w-3.5 h-3.5 text-secondary") %>
+ <% end %>
<% end %>
<% if account.shared? %>