mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Use icon helper for all-the-things * Pass size and color to the icon from buttonish components directly
16 lines
342 B
Plaintext
16 lines
342 B
Plaintext
<%= link_to href, **merged_opts do %>
|
|
<% if icon && (icon_position != "right") %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
|
|
|
<% end %>
|
|
|
|
<% unless icon_only? %>
|
|
<%= text %>
|
|
<% end %>
|
|
|
|
<% if icon && icon_position == "right" %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
|
|
|
<% end %>
|
|
<% end %>
|