mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 20:44:08 +00:00
Use icon helper for all-the-things (#2191)
* Use icon helper for all-the-things * Pass size and color to the icon from buttonish components directly
This commit is contained in:
committed by
GitHub
parent
0fdeebceb1
commit
c0267d5665
@@ -1,6 +1,6 @@
|
||||
<%= container do %>
|
||||
<% if icon && (icon_position != :right) %>
|
||||
<%= lucide_icon(icon, class: icon_classes) %>
|
||||
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
||||
<% end %>
|
||||
|
||||
<% unless icon_only? %>
|
||||
@@ -8,6 +8,6 @@
|
||||
<% end %>
|
||||
|
||||
<% if icon && icon_position == :right %>
|
||||
<%= lucide_icon(icon, class: icon_classes) %>
|
||||
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user