Skip to content

Commit 42a8113

Browse files
committed
fix(element-header): Use tooltip over title
1 parent 73c259c commit 42a8113

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

app/views/alchemy/admin/elements/_header.html.erb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
<%= Alchemy.t(:element_hidden) %>
2525
</span>
2626
</span>
27-
<%= button_tag({
28-
title: Alchemy.t(element.folded? ? :show_element_content : :hide_element_content),
29-
class: "element-toggle"
30-
}) do %>
31-
<% if element.compact? %>
32-
<%= render_icon "more-2" %>
33-
<% else %>
34-
<%= render_icon element.folded? ? "arrow-left-s" : "arrow-down-s" %>
27+
<sl-tooltip content="<%= Alchemy.t(element.folded? ? :show_element_content : :hide_element_content) %>">
28+
<%= button_tag(class: "element-toggle") do %>
29+
<% if element.compact? %>
30+
<%= render_icon "more-2" %>
31+
<% else %>
32+
<%= render_icon element.folded? ? "arrow-left-s" : "arrow-down-s" %>
33+
<% end %>
3534
<% end %>
36-
<% end %>
35+
</sl-tooltip>
3736
</div>

0 commit comments

Comments
 (0)